Skip to content

Commit

Permalink
fix compilation issue in Mingw-w64
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kindler committed Sep 16, 2020
1 parent a459ecc commit dee32f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mahi/Util/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ struct VersionGetter
const auto system = L"kernel32.dll";
DWORD dummy;
const auto cbInfo =
::GetFileVersionInfoSizeExW(FILE_VER_GET_NEUTRAL, system, &dummy);
::GetFileVersionInfoSizeW(system, &dummy);
std::vector<char> buffer(cbInfo);
::GetFileVersionInfoExW(FILE_VER_GET_NEUTRAL, system, dummy, (DWORD)buffer.size(), &buffer[0]);
::GetFileVersionInfoW(system, dummy, (DWORD)buffer.size(), &buffer[0]);
void *p = nullptr;
UINT size = 0;
::VerQueryValueW(buffer.data(), L"\\", &p, &size);
Expand Down

0 comments on commit dee32f4

Please sign in to comment.