projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f5fe98f
)
- Close dialog if user clicks cancel or close button is pressed
author
Ged Murphy
<gedmurphy@reactos.org>
Tue, 13 Dec 2005 22:02:43 +0000
(22:02 +0000)
committer
Ged Murphy
<gedmurphy@reactos.org>
Tue, 13 Dec 2005 22:02:43 +0000
(22:02 +0000)
- Fixes bug 1126
svn path=/trunk/; revision=20152
reactos/apps/utils/getfirefox/getfirefox.c
patch
|
blob
|
history
diff --git
a/reactos/apps/utils/getfirefox/getfirefox.c
b/reactos/apps/utils/getfirefox/getfirefox.c
index
604ddbe
..
62bab31
100644
(file)
--- 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);
if (wParam == IDCANCEL)
{
SetWindowLongPtrW(Dlg, GWLP_USERDATA, 1);
+ PostMessage(Dlg, WM_CLOSE, 0, 0);
}
return FALSE;
}
return FALSE;
+ case WM_CLOSE:
+ DestroyWindow(Dlg);
+ return TRUE;
+
+ case WM_DESTROY:
+ PostQuitMessage(0);
+ return TRUE;
+
default:
return FALSE;
}
default:
return FALSE;
}