handle to GetFileVersionInfoW must be zero

This commit is contained in:
Shawn Hoffman 2020-08-17 17:21:20 -07:00
parent c36ae84b96
commit 1b1fc39f02
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ static bool GetModuleVersion(const wchar_t* name, Version* version)
if (!data_len)
return false;
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;
void* buf;
UINT buf_len;