1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +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,10 +671,12 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
/* let it pass through once (tiberian sun / ClueFinders) */
static BOOL one_time;
if (wParam && !one_time)
if (!one_time)
{
one_time = TRUE;
break;
if (wParam)
break;
}
if (wParam && g_ddraw.alt_key_down && !g_config.releasealt)