mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-18 18:26:27 +01:00
handle to GetFileVersionInfoW must be zero
This commit is contained in:
parent
c36ae84b96
commit
1b1fc39f02
@ -183,7 +183,7 @@ static bool GetModuleVersion(const wchar_t* name, Version* version)
|
|||||||
if (!data_len)
|
if (!data_len)
|
||||||
return false;
|
return false;
|
||||||
std::vector<u8> block(data_len);
|
std::vector<u8> block(data_len);
|
||||||
if (!GetFileVersionInfoW(path->c_str(), handle, data_len, block.data()))
|
if (!GetFileVersionInfoW(path->c_str(), 0, data_len, block.data()))
|
||||||
return false;
|
return false;
|
||||||
void* buf;
|
void* buf;
|
||||||
UINT buf_len;
|
UINT buf_len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user