- edited description
"size" & "buff" Undefined
Issue #16
resolved
Was trying to compile this under VS2017
gw2hook.cpp
Line 252
#ifdef ARCH_64BIT
#else
uintptr_t *buff = (uintptr_t*)ctx->EDI;
uint32_t size = *(uint32_t*)(ctx->EBP + 0xc);
#endif
Gw2Hooks* list = get_hook_list();
if (list->PacketRecvHook) list->PacketRecvHook(size, buff);
}
Line 264
#ifdef ARCH_64BIT
#else
uintptr_t *buff = (uintptr_t*)ctx->EBX;
uint32_t size = ctx->EDI;
#endif
Gw2Hooks* list = get_hook_list();
if (list->PacketSendHook) list->PacketSendHook(size, buff);
}
Moving the two lines of codes into else fix the issue.
Comments (2)
-
reporter -
- changed status to resolved
64-bit added here: 93412aeb
- Log in to comment