Open ww898 opened 11 months ago
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? https://github.com/microsoft/Detours/blob/734ac64899c44933151c1335f6ef54a590219221/src/detours.cpp#L380
DetourCodeFromPointer
OutputDebugStringA
detour_skip_jmp
rex.w
0x48
jmp [+imm32]
0xFF
0x25
0xXX
Hi, I found that
DetourCodeFromPointer
doesn't work propely forOutputDebugStringA
on x64 platform becausedetour_skip_jmp
doesn't handlerex.w
(0x48
) prefix beforejmp [+imm32]
(0xFF
,0x25
,0xXX
,0xXX
,0xXX
,0xXX
). Could you please fix it? https://github.com/microsoft/Detours/blob/734ac64899c44933151c1335f6ef54a590219221/src/detours.cpp#L380