Hi, I found that DetourCodeFromPointer doesn't work propely for OutputDebugStringA on x64 platform because detour_skip_jmp doesn't handle rex.w (0x48) prefix before jmp [+imm32] (0xFF, 0x25, 0xXX, 0xXX, 0xXX, 0xXX). Could you please fix it?
|
if (pbCode[0] == 0xff && pbCode[1] == 0x25) { // jmp [+imm32] |
Hi, I found that
DetourCodeFromPointerdoesn't work propely forOutputDebugStringAon x64 platform becausedetour_skip_jmpdoesn't handlerex.w(0x48) prefix beforejmp [+imm32](0xFF,0x25,0xXX,0xXX,0xXX,0xXX). Could you please fix it?Detours/src/detours.cpp
Line 380 in 734ac64