Add arm/arm64 support on Windows

pull/1132/head
Ross Smith II 4 years ago
parent ce5729cbcd
commit 14b7231917

@ -1,4 +1,5 @@
// +build windows
//go:build (windows && amd64) || (windows && arm64)
// +build windows,amd64 windows,arm64
package process

@ -1,4 +1,5 @@
// +build windows
//go:build (windows && 386) || (windows && arm)
// +build windows,386 windows,arm
package process
@ -90,8 +91,8 @@ func readProcessMemory(h syscall.Handle, is32BitProcess bool, address uint64, si
ret, _, _ := common.ProcNtWow64ReadVirtualMemory64.Call(
uintptr(h),
uintptr(address & 0xFFFFFFFF), //the call expects a 64-bit value
uintptr(address >> 32),
uintptr(address&0xFFFFFFFF), //the call expects a 64-bit value
uintptr(address>>32),
uintptr(unsafe.Pointer(&buffer[0])),
uintptr(size), //the call expects a 64-bit value
uintptr(0), //but size is 32-bit so pass zero as the high dword
Loading…
Cancel
Save