Index: util/win/exception_handler_server.cc |
diff --git a/util/win/exception_handler_server.cc b/util/win/exception_handler_server.cc |
index 2d702f20d0627a18a54597197b77c3920b015279..50a5fa3c509021cb4fe28eb6bf875e34bd243e83 100644 |
--- a/util/win/exception_handler_server.cc |
+++ b/util/win/exception_handler_server.cc |
@@ -211,6 +211,7 @@ void ExceptionHandlerServer::Run(Delegate* delegate, |
512, |
0, |
nullptr); |
+ PCHECK(pipe != INVALID_HANDLE_VALUE) << "CreateNamedPipe"; |
// Ownership of this object (and the pipe instance) is given to the new |
// thread. We close the thread handles at the end of the scope. They clean |
@@ -224,6 +225,7 @@ void ExceptionHandlerServer::Run(Delegate* delegate, |
shutdown_token); |
thread_handles[i].reset( |
CreateThread(nullptr, 0, &PipeServiceProc, context, 0, nullptr)); |
+ PCHECK(thread_handles[i].is_valid()) << "CreateThread"; |
} |
delegate->ExceptionHandlerServerStarted(); |