diff options
-rw-r--r-- | src/client/windows/tests/crash_generation_app/crash_generation_app.cc | 6 |
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, |