mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 836829 - Fix missing result check in Mac exception handler. r=ted
This commit is contained in:
parent
39c97d978a
commit
238c29f318
@ -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 ?
|
||||
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 New Issue
Block a user