From b65f32423e5dfe328d5df8cd5584ce84a06b6539 Mon Sep 17 00:00:00 2001 From: brotalnia Date: Sun, 14 Jul 2019 14:00:42 +0300 Subject: [PATCH] Terminate process after closing window. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index d113076..6cc120e 100644 --- a/main.c +++ b/main.c @@ -151,6 +151,7 @@ int APIENTRY WinMainCRTStartup (void) { int iRet; iRet = WinMain(GetModuleHandle(NULL), NULL, NULL, GetWindowShowState()); + ExitProcess(iRet); return iRet; }