Skip to content

Commit 6dde332

Browse files
committed
Additional WndProc logging
1 parent 76578a0 commit 6dde332

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dllmain/BuildNo.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define BUILD_NUMBER 8088
1+
#define BUILD_NUMBER 8089

GDI/WndProc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ LRESULT CALLBACK WndProc::Handler(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lPa
368368

369369
if (IsDuplicateMessage || (pDataStruct->IsCreatingDevice && pDataStruct->IsExclusiveMode) || IsForcingWindowedMode)
370370
{
371+
LOG_LIMIT(3, __FUNCTION__ << " Warning: filtering " << (IsDuplicateMessage ? "duplicate " : "") << "'WM_ACTIVATEAPP': " << wParam);
371372
return CallWndProc(nullptr, hWnd, Msg, wParam, lParam);
372373
}
373374
}
@@ -384,6 +385,7 @@ LRESULT CALLBACK WndProc::Handler(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lPa
384385
{
385386
if (pDataStruct->IsActive == LOWORD(wParam))
386387
{
388+
LOG_LIMIT(3, __FUNCTION__ << " Warning: filtering duplicate 'WM_ACTIVATE': " << LOWORD(wParam));
387389
return CallWndProc(nullptr, hWnd, Msg, wParam, lParam);
388390
}
389391
pDataStruct->IsActive = LOWORD(wParam);

0 commit comments

Comments
 (0)