Index: base/process_util_win.cc |
diff --git a/base/process_util_win.cc b/base/process_util_win.cc |
index f1fd72caa5a2e478e82bcff86a11aebbd37a46f9..e725e5619e4e6afe08b09ea3833a93636620fb07 100644 |
--- a/base/process_util_win.cc |
+++ b/base/process_util_win.cc |
@@ -33,6 +33,10 @@ ProcessHandle GetCurrentProcessHandle() { |
return ::GetCurrentProcess(); |
} |
+bool CloseProcessHandle(ProcessHandle process) { |
+ return ::CloseHandle(process) ? true : false; |
+} |
+ |
// Helper for GetProcId() |
bool GetProcIdViaGetProcessId(ProcessHandle process, DWORD* id) { |
// Dynamically get a pointer to GetProcessId(). |
@@ -188,7 +192,7 @@ bool DidProcessCrash(ProcessHandle handle) { |
// Warning, this is not generic code; it heavily depends on the way |
// the rest of the code kills a process. |
- |
+ |
if (exitcode == PROCESS_END_NORMAL_TERMINATON || |
exitcode == PROCESS_END_KILLED_BY_USER || |
exitcode == PROCESS_END_PROCESS_WAS_HUNG || |