mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-07-23 02:28:36 +00:00
Check RegisterWaitForSingleObject return in CrashGenerationServer::Start.
Patch by Matt Mueller <mattm@chromium.org> Review URL: http://codereview.chromium.org/244028 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@402 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
ce9178abaa
commit
4ee3ddcd33
|
@ -218,12 +218,14 @@ bool CrashGenerationServer::Start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register a callback with the thread pool for the client connection.
|
// Register a callback with the thread pool for the client connection.
|
||||||
RegisterWaitForSingleObject(&pipe_wait_handle_,
|
if (!RegisterWaitForSingleObject(&pipe_wait_handle_,
|
||||||
overlapped_.hEvent,
|
overlapped_.hEvent,
|
||||||
OnPipeConnected,
|
OnPipeConnected,
|
||||||
this,
|
this,
|
||||||
INFINITE,
|
INFINITE,
|
||||||
kPipeIOThreadFlags);
|
kPipeIOThreadFlags)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
pipe_ = CreateNamedPipe(pipe_name_.c_str(),
|
pipe_ = CreateNamedPipe(pipe_name_.c_str(),
|
||||||
kPipeAttr,
|
kPipeAttr,
|
||||||
|
|
Loading…
Reference in a new issue