From d7d532bf56b4b0d6d47214176e34050113664798 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Fri, 11 Jul 2014 18:48:41 +0000 Subject: [PATCH] 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 --- .../tests/crash_generation_app/crash_generation_app.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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,