bug 384194 - close box in upper right of windows breakpad client doesn't close the reporter. r=campd
authorted.mielczarek@gmail.com
Wed, 28 Nov 2007 11:40:08 -0800
changeset 8405 b61246c04f09378d2becab9f7308d005f79b5a4b
parent 8404 829c1c8c24888c1ac9e972eabd7dea46ee3bda88
child 8406 21abe0b8ce5cef823e0a024d04dee09333744097
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerscampd
bugs384194
milestone1.9b2pre
bug 384194 - close box in upper right of windows breakpad client doesn't close the reporter. r=campd
toolkit/crashreporter/client/crashreporter_win.cpp
--- a/toolkit/crashreporter/client/crashreporter_win.cpp
+++ b/toolkit/crashreporter/client/crashreporter_win.cpp
@@ -667,16 +667,20 @@ static BOOL CALLBACK CrashReporterDialog
       MessageBox(hwndDlg,
                  Str(ST_SUBMITFAILED).c_str(),
                  Str(ST_CRASHREPORTERTITLE).c_str(),
                  MB_OK | MB_ICONERROR);
     }
     EndCrashReporterDialog(hwndDlg, success ? 1 : 0);
     return TRUE;
   }
+  case WM_CLOSE: {
+    EndCrashReporterDialog(hwndDlg, 0);
+    return FALSE;
+  }
   }
   return FALSE;
 }
 
 static wstring UTF8ToWide(const string& utf8, bool *success)
 {
   wchar_t* buffer = NULL;
   int buffer_size = MultiByteToWideChar(CP_UTF8, 0, utf8.c_str(),