Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3484)

Unified Diff: base/process_util_win.cc

Issue 9200009: windows: Fix a few things clang complains about. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/file_util_win.cc ('k') | base/win/sampling_profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « base/file_util_win.cc ('k') | base/win/sampling_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698