diff --git a/plugins/win-capture/graphics-hook/graphics-hook.h b/plugins/win-capture/graphics-hook/graphics-hook.h index 4e8b90b95..66d510a5a 100644 --- a/plugins/win-capture/graphics-hook/graphics-hook.h +++ b/plugins/win-capture/graphics-hook/graphics-hook.h @@ -105,7 +105,7 @@ static inline HMODULE get_system_module(const char *module) strcpy(base_path, system_path); strcat(base_path, "\\"); strcat(base_path, module); - return GetModuleHandleA(module); + return GetModuleHandleA(base_path); } static inline HMODULE load_system_library(const char *name)