diff options
Diffstat (limited to 'sandbox/win/src/interception.cc')
-rw-r--r-- | sandbox/win/src/interception.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/win/src/interception.cc b/sandbox/win/src/interception.cc index d8c5b36..8def6e8 100644 --- a/sandbox/win/src/interception.cc +++ b/sandbox/win/src/interception.cc @@ -453,9 +453,9 @@ bool InterceptionManager::PatchClientFunctions(DllInterceptionData* thunks, wchar_t* loader_get = reinterpret_cast<wchar_t*>( ntdll_image.GetProcAddress("LdrGetDllHandle")); if (loader_get) { - if (!GetModuleHandleHelper(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | - GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, - loader_get, &ntdll_base)) + if (!GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | + GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, + loader_get, &ntdll_base)) return false; } |