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)