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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user