提交 13d22645 编写于 作者: J jp9000

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.
上级 7e11c01e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册