add 'ref' to def of VirtualProtectEx

now it sets _lpflOldProtect_ properly
This commit is contained in:
Physics
2020-05-16 22:03:09 -03:00
committed by GitHub
parent c81d611012
commit 872738ef21
+1 -1
View File
@@ -25,7 +25,7 @@ class Inject:
pass pass
[DllImport("kernel32.dll")] [DllImport("kernel32.dll")]
def VirtualProtectEx(hProcess as int, lpAddress as int, dwSize as int, flNewProtect as uint, lpflOldProtect as uint) as bool: def VirtualProtectEx(hProcess as int, lpAddress as int, dwSize as int, flNewProtect as uint, ref lpflOldProtect as uint) as bool:
pass pass
[DllImport("kernel32.dll")] [DllImport("kernel32.dll")]