diff options
| author | Petr Mrázek | 2011-07-09 16:05:40 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-09 16:05:40 +0200 |
| commit | 07c11c704d43944609f7a323b09dbbb975756c7d (patch) | |
| tree | 3daf2c3b69e7971e9ab73c52eea4857587b3f962 /library/Process-windows.cpp | |
| parent | 520916240328964f0f4a5fc080bca1b27891b435 (diff) | |
| download | dfhack-07c11c704d43944609f7a323b09dbbb975756c7d.tar.gz dfhack-07c11c704d43944609f7a323b09dbbb975756c7d.tar.bz2 dfhack-07c11c704d43944609f7a323b09dbbb975756c7d.tar.xz | |
Fix Windows build (untested, expect explosions).
Diffstat (limited to 'library/Process-windows.cpp')
| -rw-r--r-- | library/Process-windows.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/Process-windows.cpp b/library/Process-windows.cpp index 4aa3adc9..7bf78644 100644 --- a/library/Process-windows.cpp +++ b/library/Process-windows.cpp @@ -330,9 +330,9 @@ void Process::getMemRanges( vector<t_memrange> & ranges ) } } -string Process::doReadClassName (uint32_t vptr) +string Process::doReadClassName (void * vptr) { - int rtti = readDWord(vptr - 0x4); + int rtti = readDWord((uint32_t)vptr - 0x4); int typeinfo = readDWord(rtti + 0xC); string raw = readCString(typeinfo + 0xC); // skips the .?AV raw.resize(raw.length() - 2);// trim @@ from end |
