From: Ged Murphy Date: Tue, 13 Dec 2005 22:02:43 +0000 (+0000) Subject: - Close dialog if user clicks cancel or close button is pressed X-Git-Tag: backups/expat-rbuild@40467~946 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=e5f571b48a9525246fc40624c67acdced3b9a484 - Close dialog if user clicks cancel or close button is pressed - Fixes bug 1126 svn path=/trunk/; revision=20152 --- diff --git a/reactos/apps/utils/getfirefox/getfirefox.c b/reactos/apps/utils/getfirefox/getfirefox.c index 604ddbeb9b3..62bab316485 100644 --- a/reactos/apps/utils/getfirefox/getfirefox.c +++ b/reactos/apps/utils/getfirefox/getfirefox.c @@ -354,9 +354,18 @@ dlProc(HWND Dlg, UINT Msg, WPARAM wParam, LPARAM lParam) if (wParam == IDCANCEL) { SetWindowLongPtrW(Dlg, GWLP_USERDATA, 1); + PostMessage(Dlg, WM_CLOSE, 0, 0); } return FALSE; + case WM_CLOSE: + DestroyWindow(Dlg); + return TRUE; + + case WM_DESTROY: + PostQuitMessage(0); + return TRUE; + default: return FALSE; }