win: Don't crash on invalid parameter error.

libuv relies on suppressing the invalid parameter error in
uv__get_osfhandle, and it could hanppen frequently.

Fixes #513.
This commit is contained in:
Cheng Zhao 2014-07-26 11:09:01 +08:00
parent ad3eac2e38
commit b9d64784bb

View file

@ -54,12 +54,14 @@ void CrashReporterWin::InitBreakpad(const std::string& product_name,
if (waiting_event != INVALID_HANDLE_VALUE)
WaitForSingleObject(waiting_event, 1000);
int handler_types = google_breakpad::ExceptionHandler::HANDLER_EXCEPTION |
google_breakpad::ExceptionHandler::HANDLER_PURECALL;
breakpad_.reset(new google_breakpad::ExceptionHandler(
temp_dir.value(),
FilterCallback,
MinidumpCallback,
this,
google_breakpad::ExceptionHandler::HANDLER_ALL,
handler_types,
kSmallDumpType,
pipe_name.c_str(),
GetCustomInfo(product_name, version, company_name)));