mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-11 22:06:00 +00:00
Fix missing result check in Mac exception handler
Patch by Georg Fritzsche <georg.fritzsche@googlemail.com>, R=ted at https://breakpad.appspot.com/554003/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1152 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
d9c3ad7b88
commit
32ce6dea51
|
@ -281,9 +281,13 @@ bool ExceptionHandler::WriteMinidump(bool write_exception_stream) {
|
|||
if (pthread_mutex_lock(&minidump_write_mutex_) == 0) {
|
||||
// Send an empty message to the handle port so that a minidump will
|
||||
// be written
|
||||
SendMessageToHandlerThread(write_exception_stream ?
|
||||
kWriteDumpWithExceptionMessage :
|
||||
kWriteDumpMessage);
|
||||
bool result = SendMessageToHandlerThread(write_exception_stream ?
|
||||
kWriteDumpWithExceptionMessage :
|
||||
kWriteDumpMessage);
|
||||
if (!result) {
|
||||
pthread_mutex_unlock(&minidump_write_mutex_);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Wait for the minidump writer to complete its writing. It will unlock
|
||||
// the mutex when completed
|
||||
|
|
Loading…
Reference in a new issue