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:
		
					parent
					
						
							
								ad3eac2e38
							
						
					
				
			
			
				commit
				
					
						b9d64784bb
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -54,12 +54,14 @@ void CrashReporterWin::InitBreakpad(const std::string& product_name, | ||||||
|   if (waiting_event != INVALID_HANDLE_VALUE) |   if (waiting_event != INVALID_HANDLE_VALUE) | ||||||
|     WaitForSingleObject(waiting_event, 1000); |     WaitForSingleObject(waiting_event, 1000); | ||||||
| 
 | 
 | ||||||
|  |   int handler_types = google_breakpad::ExceptionHandler::HANDLER_EXCEPTION | | ||||||
|  |       google_breakpad::ExceptionHandler::HANDLER_PURECALL; | ||||||
|   breakpad_.reset(new google_breakpad::ExceptionHandler( |   breakpad_.reset(new google_breakpad::ExceptionHandler( | ||||||
|       temp_dir.value(), |       temp_dir.value(), | ||||||
|       FilterCallback, |       FilterCallback, | ||||||
|       MinidumpCallback, |       MinidumpCallback, | ||||||
|       this, |       this, | ||||||
|       google_breakpad::ExceptionHandler::HANDLER_ALL, |       handler_types, | ||||||
|       kSmallDumpType, |       kSmallDumpType, | ||||||
|       pipe_name.c_str(), |       pipe_name.c_str(), | ||||||
|       GetCustomInfo(product_name, version, company_name))); |       GetCustomInfo(product_name, version, company_name))); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao