mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-07-10 14:47:26 +00:00
Issue 384 - UnregisterWait error handling is incorrect. Patch by Benjamin Smedberg <benjamin@smedbergs.us>, r=doshimun at http://breakpad.appspot.com/107001
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@603 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
0b54af4f91
commit
b0059c54da
|
@ -101,26 +101,16 @@ ClientInfo::~ClientInfo() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ClientInfo::UnregisterWaits() {
|
void ClientInfo::UnregisterWaits() {
|
||||||
bool success = true;
|
|
||||||
|
|
||||||
if (dump_request_wait_handle_) {
|
if (dump_request_wait_handle_) {
|
||||||
if (!UnregisterWait(dump_request_wait_handle_)) {
|
UnregisterWait(dump_request_wait_handle_);
|
||||||
success = false;
|
|
||||||
} else {
|
|
||||||
dump_request_wait_handle_ = NULL;
|
dump_request_wait_handle_ = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (process_exit_wait_handle_) {
|
if (process_exit_wait_handle_) {
|
||||||
if (!UnregisterWait(process_exit_wait_handle_)) {
|
UnregisterWait(process_exit_wait_handle_);
|
||||||
success = false;
|
|
||||||
} else {
|
|
||||||
process_exit_wait_handle_ = NULL;
|
process_exit_wait_handle_ = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return success;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ClientInfo::GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info) const {
|
bool ClientInfo::GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info) const {
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ClientInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unregister all waits for the client.
|
// Unregister all waits for the client.
|
||||||
bool UnregisterWaits();
|
void UnregisterWaits();
|
||||||
|
|
||||||
bool Initialize();
|
bool Initialize();
|
||||||
bool GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info) const;
|
bool GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info) const;
|
||||||
|
|
Loading…
Reference in a new issue