From d04ada54d920431456bb5999986fa9748676b300 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Thu, 5 Oct 2023 02:02:07 +0200 Subject: [PATCH] use _exit to avoid issues on close --- src/wndproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wndproc.c b/src/wndproc.c index 961f33d..a64b2cb 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -512,7 +512,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam if (wParam == SC_CLOSE && !GameHandlesClose) { - exit(0); + _exit(0); } if (wParam == SC_KEYMENU && GetMenu(g_ddraw->hwnd) == NULL)