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.
This commit is contained in:
jp9000
2015-08-29 20:56:13 -07:00
parent 7e11c01e28
commit 13d22645e4

View File

@@ -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)