Index: third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
diff --git a/third_party/crashpad/crashpad/handler/win/crash_other_program.cc b/third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
index d191aac01ed0e1b9df64bdbd681cb9b51d1e9420..012b4ba3cc3a8bc3c5d719e8c14fb1c075fad080 100644 |
--- a/third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
+++ b/third_party/crashpad/crashpad/handler/win/crash_other_program.cc |
@@ -90,7 +90,8 @@ int CrashOtherProgram(int argc, wchar_t* argv[]) { |
// Wait until it's ready. |
char c; |
- if (!LoggingReadFile(child.stdout_read_handle(), &c, sizeof(c)) || c != ' ') { |
+ if (!LoggingReadFileExactly(child.stdout_read_handle(), &c, sizeof(c)) || |
+ c != ' ') { |
LOG(ERROR) << "failed child communication"; |
return EXIT_FAILURE; |
} |