mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-12 22:09:58 -04:00
libobs/util: Fix get_dll_ver always getting kernel32 info
This commit is contained in:
1 parent
47aa56b3e9
commit
2cf5c5f7f7
1 file changed
+1
-1
@@ -732,7 +732,7 @@ bool get_dll_ver(const wchar_t *lib, struct win_version_info *ver_info)
|
||||
}
|
||||
|
||||
data = bmalloc(size);
|
||||
if (!get_file_version_info(L"kernel32", 0, size, data)) {
|
||||
if (!get_file_version_info(lib, 0, size, data)) {
|
||||
blog(LOG_ERROR, "Failed to get windows version info");
|
||||
bfree(data);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user