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

Unified Diff: base/process_util_win.cc

Issue 9703019: Fix error handling in OpenProcess wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_win.cc
===================================================================
--- base/process_util_win.cc (revision 126069)
+++ base/process_util_win.cc (working copy)
@@ -191,7 +191,7 @@
ProcessHandle result = OpenProcess(PROCESS_DUP_HANDLE | PROCESS_TERMINATE,
FALSE, pid);
- if (result == INVALID_HANDLE_VALUE)
+ if (result == NULL)
return false;
*handle = result;
@@ -206,7 +206,7 @@
SYNCHRONIZE,
FALSE, pid);
- if (result == INVALID_HANDLE_VALUE)
+ if (result == NULL)
return false;
*handle = result;
@@ -218,7 +218,7 @@
ProcessHandle* handle) {
ProcessHandle result = OpenProcess(access_flags, FALSE, pid);
- if (result == INVALID_HANDLE_VALUE)
+ if (result == NULL)
return false;
*handle = result;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698