Skip to content

Commit 14ff0a0

Browse files
committed
use ExitProcess instead of _exit to avoid issues
1 parent fd1bac4 commit 14ff0a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wndproc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
591591

592592
if (wParam == SC_CLOSE && !GameHandlesClose)
593593
{
594-
_exit(0);
594+
ExitProcess(0);
595+
//_exit(0);
595596
}
596597

597598
if (wParam == SC_KEYMENU && GetMenu(g_ddraw.hwnd) == NULL)

0 commit comments

Comments
 (0)