From 3d69f092c9f068bf9260f1323f3e4786231c1c32 Mon Sep 17 00:00:00 2001 From: SarahW Date: Thu, 25 May 2017 21:25:42 +0100 Subject: [PATCH] Fixed infinite loop in Windows GUI when selecting File->Exit. --- src/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win.c b/src/win.c index 55e4bb7..f88b5ee 100644 --- a/src/win.c +++ b/src/win.c @@ -935,7 +935,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM pause=0; break; case IDM_FILE_EXIT: - PostQuitMessage (0); /* send a WM_QUIT to the message queue */ + PostMessage(hwnd, WM_CLOSE, 0, 0); break; case IDM_DISC_A: if (!getfile(hwnd,"Disc image (*.IMG;*.IMA;*.FDI)\0*.IMG;*.IMA;*.FDI\0All files (*.*)\0*.*\0",discfns[0]))