Index: base/process_util_win.cc |
diff --git a/base/process_util_win.cc b/base/process_util_win.cc |
index 4fab4c68efc1da792e06b59f3ca07a5ed58ead11..9b2e100439cd24bdd060139a433eed2b3c91ceda 100644 |
--- a/base/process_util_win.cc |
+++ b/base/process_util_win.cc |
@@ -176,13 +176,14 @@ ProcessHandle GetCurrentProcessHandle() { |
} |
HMODULE GetModuleFromAddress(void* address) { |
- HMODULE hinst = NULL; |
- if (!::GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, |
+ HMODULE instance = NULL; |
+ if (!::GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | |
+ GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, |
static_cast<char*>(address), |
- &hinst)) { |
+ &instance)) { |
NOTREACHED(); |
} |
- return hinst; |
+ return instance; |
} |
bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) { |