Skip to content

Commit

Permalink
uint32_t uint64_t are not supported by VS2008
Browse files Browse the repository at this point in the history
Switch to ULONG and ULONGLONG.
IssMneur committed Mar 19, 2016
1 parent 384215c commit d99cbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/global/Compatibility.cpp
Original file line number Diff line number Diff line change
@@ -42,13 +42,13 @@ bool enumRegistryValue(HKEY parent, DWORD index, wxString& valueNameOut, wxStrin
break;
case REG_DWORD:
{
uint32_t val = *reinterpret_cast<uint32_t*>(valueBuffer); // I feel dirty...
ULONG val = *reinterpret_cast<ULONG*>(valueBuffer); // I feel dirty...
valueOut << val;
break;
}
case REG_QWORD:
{
uint64_t val = *reinterpret_cast<uint64_t*>(valueBuffer); // I feel dirty...
ULONGLONG val = *reinterpret_cast<ULONGLONG*>(valueBuffer); // I feel dirty...
valueOut << val;
break;
}

0 comments on commit d99cbc4

Please sign in to comment.