fix d3dx x64 hook

This commit is contained in:
Akash Mozumdar 2019-06-09 06:51:34 -04:00
parent 440474d2ee
commit e453b571ba

View File

@ -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 = {};