From e453b571baf682fd62f919d6c2aa99cc3a4f7968 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 9 Jun 2019 06:51:34 -0400 Subject: [PATCH] fix d3dx x64 hook --- texthook/engine/native/pchooks.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texthook/engine/native/pchooks.cc b/texthook/engine/native/pchooks.cc index ba48ed9..d498fcf 100644 --- a/texthook/engine/native/pchooks.cc +++ b/texthook/engine/native/pchooks.cc @@ -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 = {};