summaryrefslogtreecommitdiff
path: root/src/cs2/iface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cs2/iface.h')
-rw-r--r--src/cs2/iface.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cs2/iface.h b/src/cs2/iface.h
index 6c3b34b..be2137d 100644
--- a/src/cs2/iface.h
+++ b/src/cs2/iface.h
@@ -42,6 +42,8 @@ inline U64 iface_get_address( PROCESS64* p, U64 create_fn ) {
U32 off = *(U32*)&data[3];
U64 addr = create_fn + off + 7;
+
+ return addr;
}
inline U64 iface_get_createinterface( PROCESS64* p, U64 module ) {
@@ -77,7 +79,10 @@ inline VECTOR<IFACE_ENTRY> iface_dump_module( PROCESS64* p, MODULE_ENTRY module
for( ;; ) {
IFACE_ENTRY entry;
p->read( reg.name, entry.name.data, 64 );
- entry.ptr = reg.create_fn;
+
+ U64 ptr = iface_get_address( p, reg.create_fn );
+
+ entry.ptr = ptr;
entry.module = module.base;
entry.module_name = module.name;
entries.push_back( entry );