win32: use WM_CLOSE when exiting via menu (fixes #349)

This commit is contained in:
OV2 2018-06-28 14:28:39 +02:00
parent 77c30172a4
commit 2a3cafb6b2
1 changed files with 1 additions and 1 deletions

View File

@ -1998,7 +1998,7 @@ LRESULT CALLBACK WinProc(
case ID_FILE_EXIT: case ID_FILE_EXIT:
S9xSetPause (PAUSE_EXIT); S9xSetPause (PAUSE_EXIT);
PostMessage (hWnd, WM_DESTROY, 0, 0); PostMessage (hWnd, WM_CLOSE, 0, 0);
break; break;
case ID_WINDOW_HIDEMENUBAR: case ID_WINDOW_HIDEMENUBAR: