- Close dialog if user clicks cancel or close button is pressed
- Fixes bug 1126
Modified: trunk/reactos/apps/utils/getfirefox/getfirefox.c

Modified: trunk/reactos/apps/utils/getfirefox/getfirefox.c
--- trunk/reactos/apps/utils/getfirefox/getfirefox.c	2005-12-13 21:48:57 UTC (rev 20151)
+++ trunk/reactos/apps/utils/getfirefox/getfirefox.c	2005-12-13 22:02:43 UTC (rev 20152)
@@ -354,9 +354,18 @@
       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;
     }