It's a modal dialog not a window. Close it correctly.
authorGed Murphy <gedmurphy@reactos.org>
Tue, 13 Dec 2005 22:23:08 +0000 (22:23 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Tue, 13 Dec 2005 22:23:08 +0000 (22:23 +0000)
svn path=/trunk/; revision=20154

reactos/apps/utils/getfirefox/getfirefox.c

index 41d5a70..40d758f 100644 (file)
@@ -359,14 +359,10 @@ dlProc(HWND Dlg, UINT Msg, WPARAM wParam, LPARAM lParam)
       return FALSE;
 
     case WM_CLOSE:
       return FALSE;
 
     case WM_CLOSE:
-        DestroyWindow(Dlg);
+        EndDialog(Dlg, 0);
         return TRUE;
 
         return TRUE;
 
-    case WM_DESTROY:
-        PostQuitMessage(0);
-        return TRUE;
-
-    default:
+       default:
       return FALSE;
     }
 }
       return FALSE;
     }
 }