Fix for crashs generation test app to not deadlock

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@352 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
nealsid 2009-06-22 21:45:31 +00:00
parent 1d8cba25c7
commit ae4d8370ee

View File

@ -183,7 +183,7 @@ bool ShowDumpResults(const wchar_t* dump_path,
delete [] text;
}
AppendTextWorker(text);
QueueUserWorkItem(AppendTextWorker, text, WT_EXECUTEDEFAULT);
return succeeded;
}
@ -467,6 +467,7 @@ int APIENTRY _tWinMain(HINSTANCE instance,
CustomClientInfo custom_info = {kCustomInfoEntries, kCustomInfoCount};
CrashServerStart();
// This is needed for CRT to not show dialog for invalid param
// failures and instead let the code handle it.
_CrtSetReportMode(_CRT_ASSERT, 0);