Ver Fonte

win-capture: Use correct variable for system modules

..This is rather embarrassing.  I used the parameter variable and the
actual variable that I wanted to used went completely unused.  Would
static analysis catch something like this, I wonder?  Would probably
have to be really good static analysis.
jp9000 há 10 anos atrás
pai
commit
13d22645e4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      plugins/win-capture/graphics-hook/graphics-hook.h

+ 1 - 1
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)