summaryrefslogtreecommitdiff
path: root/library/Process-windows.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-07-09 16:05:40 +0200
committerPetr Mrázek2011-07-09 16:05:40 +0200
commit07c11c704d43944609f7a323b09dbbb975756c7d (patch)
tree3daf2c3b69e7971e9ab73c52eea4857587b3f962 /library/Process-windows.cpp
parent520916240328964f0f4a5fc080bca1b27891b435 (diff)
downloaddfhack-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.cpp4
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