Merge pull request #1132 from rasa/rasa/add_arm_support

Add arm/arm64 support on Windows (fixes #916)
pull/1134/head
shirou committed by GitHub
commit 80d5b57405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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