fix d3dx x64 hook
This commit is contained in:
parent
440474d2ee
commit
e453b571ba
@ -191,7 +191,7 @@ void PcHooks::hookD3DXFunctions(HMODULE d3dxModule)
|
||||
void(D3DXFont::*ctor)();
|
||||
uintptr_t addr;
|
||||
} fuckTheTypeSystem;
|
||||
fuckTheTypeSystem.addr = *(uintptr_t*)(createFont + i + 1) + createFont + i + 5;
|
||||
fuckTheTypeSystem.addr = *(DWORD*)(createFont + i + 1) + createFont + i + 5;
|
||||
(font.*(fuckTheTypeSystem.ctor))();
|
||||
|
||||
HookParam hp = {};
|
||||
|
Loading…
Reference in New Issue
Block a user