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

Unified Diff: base/process/memory_win.cc

Issue 1779333003: Add test for multithreaded ActiveVerifier behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@handlecreate
Patch Set: nits Created 4 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
Index: base/process/memory_win.cc
diff --git a/base/process/memory_win.cc b/base/process/memory_win.cc
index 42f707d9ac0102df377fbe2b2c075b34edcfeca2..386000a700547d4efcdab6a6d2d604e98f2b6e2d 100644
--- a/base/process/memory_win.cc
+++ b/base/process/memory_win.cc
@@ -95,11 +95,11 @@ void EnableTerminationOnOutOfMemory() {
_set_new_mode(1);
}
-HMODULE GetModuleFromAddress(void* address) {
+HMODULE GetModuleFromAddress(const void* address) {
HMODULE instance = NULL;
if (!::GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
- static_cast<char*>(address),
+ static_cast<char*>(const_cast<void*>(address)),
&instance)) {
NOTREACHED();
}
« no previous file with comments | « base/process/memory.h ('k') | base/win/scoped_handle.h » ('j') | base/win/scoped_handle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698