Index: base/process_util_win.cc |
diff --git a/base/process_util_win.cc b/base/process_util_win.cc |
index dc165ec3889cace24d2172c2d91db8c3eb9653f5..9bd415d13f77f1859ad94dddbfd843bb47ac7f98 100644 |
--- a/base/process_util_win.cc |
+++ b/base/process_util_win.cc |
@@ -592,7 +592,7 @@ bool WaitForProcessesToExit(const std::wstring& executable_name, |
DWORD start_time = GetTickCount(); |
NamedProcessIterator iter(executable_name, filter); |
- while (entry = iter.NextProcessEntry()) { |
+ while ((entry = iter.NextProcessEntry()) != NULL) { |
DWORD remaining_wait = |
std::max<int64>(0, wait_milliseconds - (GetTickCount() - start_time)); |
HANDLE process = OpenProcess(SYNCHRONIZE, |