aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows
diff options
context:
space:
mode:
authorted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2014-07-11 18:48:41 +0000
committerted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2014-07-11 18:48:41 +0000
commitd7d532bf56b4b0d6d47214176e34050113664798 (patch)
tree416b16b93e73b0779882718391aea08d8dc6d4f9 /src/client/windows
parentStringify minidump stream_type constants in minidump_dump output (diff)
downloadbreakpad-d7d532bf56b4b0d6d47214176e34050113664798.tar.xz
Ensure C:/Dumps/ exists in crash_generation_app
A=j.turney R=ted at https://breakpad.appspot.com/1134002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1348 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/windows')
-rw-r--r--src/client/windows/tests/crash_generation_app/crash_generation_app.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc
index 7a6c1a97..fa4e634c 100644
--- a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc
+++ b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc
@@ -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,