Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / breakpad / src / client / windows / tests / crash_generation_app / crash_generation_app.cc
index 7a6c1a9..fa4e634 100644 (file)
@@ -283,6 +283,12 @@ void CrashServerStart() {
   }
 
   std::wstring dump_path = L"C:\\Dumps\\";
+
+  if (_wmkdir(dump_path.c_str()) && (errno != EEXIST)) {
+    MessageBoxW(NULL, L"Unable to create dump directory", L"Dumper", MB_OK);
+    return;
+  }
+
   crash_server = new CrashGenerationServer(kPipeName,
                                            NULL,
                                            ShowClientConnected,