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
This commit is contained in:
parent
0a5ebafdf0
commit
d7d532bf56
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue