1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

use ExitProcess instead of _exit to avoid issues

This commit is contained in:
FunkyFr3sh 2024-12-07 02:24:22 +01:00
parent fd1bac4a38
commit 14ff0a0d9e

View File

@ -591,7 +591,8 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
if (wParam == SC_CLOSE && !GameHandlesClose)
{
_exit(0);
ExitProcess(0);
//_exit(0);
}
if (wParam == SC_KEYMENU && GetMenu(g_ddraw.hwnd) == NULL)