Index: client/windows/crash_generation/crash_generation_server.cc |
=================================================================== |
--- client/windows/crash_generation/crash_generation_server.cc (revision 391) |
+++ client/windows/crash_generation/crash_generation_server.cc (working copy) |
@@ -218,12 +218,14 @@ |
} |
// Register a callback with the thread pool for the client connection. |
- RegisterWaitForSingleObject(&pipe_wait_handle_, |
- overlapped_.hEvent, |
- OnPipeConnected, |
- this, |
- INFINITE, |
- kPipeIOThreadFlags); |
+ if (!RegisterWaitForSingleObject(&pipe_wait_handle_, |
+ overlapped_.hEvent, |
+ OnPipeConnected, |
+ this, |
+ INFINITE, |
+ kPipeIOThreadFlags)) { |
+ return false; |
+ } |
pipe_ = CreateNamedPipe(pipe_name_.c_str(), |
kPipeAttr, |