Index: base/process/process_win.cc |
diff --git a/base/process/process_win.cc b/base/process/process_win.cc |
index 0d312a3599088eabf4bc2043a5f875b6d1f9d019..2ad72c706b0549b9dbc544b686eac2658f0ab571 100644 |
--- a/base/process/process_win.cc |
+++ b/base/process/process_win.cc |
@@ -154,7 +154,8 @@ bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) { |
if (!::GetExitCodeProcess(Handle(), &temp_code)) |
return false; |
- *exit_code = temp_code; |
+ if (exit_code) |
+ *exit_code = temp_code; |
return true; |
} |