fix check-structures-sanity compile on 64-bit windows

develop
Ben Lubar 2020-03-13 01:09:04 -05:00
parent a456b2fcf3
commit ccf92d4b0a
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 1 additions and 1 deletions

@ -159,7 +159,7 @@ const char *Checker::get_vtable_name(const QueueItem & item, const CheckedStruct
#ifdef WIN32 #ifdef WIN32
#ifdef DFHACK64 #ifdef DFHACK64
void *base; void *base;
if (!RtlPcToFileHeader(info, &base)) if (!RtlPcToFileHeader(const_cast<void *>(reinterpret_cast<const void *>(info)), &base))
return nullptr; return nullptr;
const char *typeinfo = reinterpret_cast<const char *>(base) + reinterpret_cast<const int32_t *>(info)[3]; const char *typeinfo = reinterpret_cast<const char *>(base) + reinterpret_cast<const int32_t *>(info)[3];