mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs/util: Fix get_dll_ver always getting kernel32 info
This commit is contained in:
@@ -732,7 +732,7 @@ bool get_dll_ver(const wchar_t *lib, struct win_version_info *ver_info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
data = bmalloc(size);
|
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");
|
blog(LOG_ERROR, "Failed to get windows version info");
|
||||||
bfree(data);
|
bfree(data);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user