From db45e415ede2f8e6b040ab09be9a3166caf5c816 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 15 Dec 2025 14:54:14 +0100 Subject: [run-virt] Add debug code to debug problem that's gone while debugging --- .../data/opt/openslx/vmchooser/data/openslx.exe | Bin 139264 -> 139264 bytes core/modules/run-virt/winres/src/winres.c | 4 ++++ 2 files changed, 4 insertions(+) (limited to 'core/modules') diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/data/openslx.exe b/core/modules/run-virt/data/opt/openslx/vmchooser/data/openslx.exe index 64c84c90..ec491054 100755 Binary files a/core/modules/run-virt/data/opt/openslx/vmchooser/data/openslx.exe and b/core/modules/run-virt/data/opt/openslx/vmchooser/data/openslx.exe differ diff --git a/core/modules/run-virt/winres/src/winres.c b/core/modules/run-virt/winres/src/winres.c index 23dcfd6a..7bb11ebe 100644 --- a/core/modules/run-virt/winres/src/winres.c +++ b/core/modules/run-virt/winres/src/winres.c @@ -178,7 +178,11 @@ static void CALLBACK tmrResolution(HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD if (!bInProc) { bInProc = TRUE; if (setResolution() == 0) { + dalog("Killing resolution timer %d %d", (int)tmrRes, (int)idEvent); KillTimer(hWnd, tmrRes); + if (idEvent != tmrRes) { + KillTimer(hWnd, idEvent); + } tmrRes = 0; } bInProc = FALSE; -- cgit v1.2.3-55-g7522