diff --git a/src/libcore/fresolver.cpp b/src/libcore/fresolver.cpp index 3434339b..c7395996 100644 --- a/src/libcore/fresolver.cpp +++ b/src/libcore/fresolver.cpp @@ -47,9 +47,9 @@ FileResolver::FileResolver() { // Module handle to this DLL. If the function fails it sets handle to NULL. // In that case GetModuleFileName will get the name of the executable which // is acceptable soft-failure behavior. - HMODULE handle; - GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS - | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, + HMODULE handle; + GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS + | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, reinterpret_cast(&dummyModuleFunc), &handle); // Try to get the path with the default MAX_PATH length (260 chars)