mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 01:38:18 +08:00
Remove assembly from patcher.h
This commit is contained in:
1 parent
e7c18fc17f
commit
184a80cc3b
2 files changed
+4
-10
No files matched your search
+1
-1
@@ -71,7 +71,7 @@ InjectHook_internal(uint32 address, uint32 hook, int type)
|
||||
break;
|
||||
}
|
||||
|
||||
*(ptrdiff_t*)(address + 1) = hook - address - 5;
|
||||
*(ptrdiff_t*)(address + 1) = (uintptr_t)hook - (uintptr_t)address - 5;
|
||||
if(type == PATCH_NOTHING)
|
||||
VirtualProtect((void*)(address + 1), 4, protect[0], &protect[1]);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user