1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-26 10:29:23 +01:00

make sure we only let the first WM_ACTIVATEAPP pass through

This commit is contained in:
FunkyFr3sh 2024-06-07 01:01:12 +02:00
parent 4df9dfc654
commit 0246dd44e9

View File

@ -671,9 +671,11 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
/* let it pass through once (tiberian sun / ClueFinders) */ /* let it pass through once (tiberian sun / ClueFinders) */
static BOOL one_time; static BOOL one_time;
if (wParam && !one_time) if (!one_time)
{ {
one_time = TRUE; one_time = TRUE;
if (wParam)
break; break;
} }