We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfd6dc2 commit 76d1f10Copy full SHA for 76d1f10
mhook-lib/mhook.cpp
@@ -197,6 +197,11 @@ static PBYTE SkipJumps(PBYTE pbCode) {
197
INT32 lOffset = *(INT32 *)&pbCode[2];
198
// ... that shows us an absolute pointer
199
return SkipJumps(*(PBYTE*)(pbCode + 6 + lOffset));
200
+ } else if (pbCode[0] == 0x48 && pbCode[1] == 0xff && pbCode[2] == 0x25) {
201
+ // or we can have the same with a REX prefix
202
+ INT32 lOffset = *(INT32 *)&pbCode[3];
203
+ // ... that shows us an absolute pointer
204
+ return SkipJumps(*(PBYTE*)(pbCode + 7 + lOffset));
205
#endif
206
} else if (pbCode[0] == 0xe9) {
207
// here the behavior is identical, we have...
0 commit comments