use ExitProcess instead of _exit to avoid issues
This commit is contained in:
parent
fd1bac4a38
commit
14ff0a0d9e
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue