Index: base/process_util_win.cc |
diff --git a/base/process_util_win.cc b/base/process_util_win.cc |
index dc165ec3889cace24d2172c2d91db8c3eb9653f5..573d80438bd88364ee80b3964325deff456770f7 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())) { |
Evan Martin
2012/01/23 18:19:49
Maybe add a != NULL here to make it more explicit?
Nico
2012/01/23 18:36:03
Sure, done.
|
DWORD remaining_wait = |
std::max<int64>(0, wait_milliseconds - (GetTickCount() - start_time)); |
HANDLE process = OpenProcess(SYNCHRONIZE, |