From 2a3cafb6b2c7b4ba991b910616bdffb6e607fc1f Mon Sep 17 00:00:00 2001 From: OV2 Date: Thu, 28 Jun 2018 14:28:39 +0200 Subject: [PATCH] win32: use WM_CLOSE when exiting via menu (fixes #349) --- win32/wsnes9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 0ef19000..e10a2de6 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -1998,7 +1998,7 @@ LRESULT CALLBACK WinProc( case ID_FILE_EXIT: S9xSetPause (PAUSE_EXIT); - PostMessage (hWnd, WM_DESTROY, 0, 0); + PostMessage (hWnd, WM_CLOSE, 0, 0); break; case ID_WINDOW_HIDEMENUBAR: