diff --git a/src/client/windows/crash_generation/crash_generation_client.cc b/src/client/windows/crash_generation/crash_generation_client.cc index 20f7177a..84a686a4 100644 --- a/src/client/windows/crash_generation/crash_generation_client.cc +++ b/src/client/windows/crash_generation/crash_generation_client.cc @@ -178,7 +178,7 @@ bool CrashGenerationClient::RequestUpload(DWORD crash_id) { static_cast(NULL), NULL, NULL, NULL, custom_info, NULL, NULL, NULL); DWORD bytes_count = 0; - bool success = WriteFile(pipe, &msg, sizeof(msg), &bytes_count, NULL); + bool success = WriteFile(pipe, &msg, sizeof(msg), &bytes_count, NULL) != 0; CloseHandle(pipe); return success;