diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-17 17:21:20 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-23 13:55:14 -0700 |
| commit | 1b1fc39f02ef4824316f400092e2fceffa3aab97 (patch) | |
| tree | b447df232648a188e4706fab9c87a21f632e2821 /Source/Core | |
| parent | c36ae84b966327bd9d78d3eabf2309f82d37792e (diff) | |
handle to GetFileVersionInfoW must be zero
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/CompatPatches.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/CompatPatches.cpp b/Source/Core/Common/CompatPatches.cpp index f2b179eb12..260488cd6a 100644 --- a/Source/Core/Common/CompatPatches.cpp +++ b/Source/Core/Common/CompatPatches.cpp @@ -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; |
