diff options
Diffstat (limited to 'sandbox/win/src/sandbox_utils.cc')
-rw-r--r-- | sandbox/win/src/sandbox_utils.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sandbox/win/src/sandbox_utils.cc b/sandbox/win/src/sandbox_utils.cc index 509c7c8..3aeb6a0 100644 --- a/sandbox/win/src/sandbox_utils.cc +++ b/sandbox/win/src/sandbox_utils.cc @@ -26,10 +26,8 @@ bool GetModuleHandleHelper(DWORD flags, const wchar_t* module_name, GetModuleHandleExFunction get_module_handle_ex = reinterpret_cast< GetModuleHandleExFunction>(::GetProcAddress(kernel32_base, "GetModuleHandleExW")); - if (get_module_handle_ex) { - BOOL ret = get_module_handle_ex(flags, module_name, module); - return (ret ? true : false); - } + if (get_module_handle_ex) + return (get_module_handle_ex(flags, module_name, module) != FALSE); if (!flags) { *module = ::LoadLibrary(module_name); |