Skip to content

Commit 80d5b57

Browse files
authored
Merge pull request #1132 from rasa/rasa/add_arm_support
Add arm/arm64 support on Windows (fixes #916)
2 parents ce5729c + 14b7231 commit 80d5b57

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

v3/process/process_windows_amd64.go renamed to v3/process/process_windows_64.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// +build windows
1+
//go:build (windows && amd64) || (windows && arm64)
2+
// +build windows,amd64 windows,arm64
23

34
package process
45

v3/process/process_windows_386.go renamed to v3/process/process_windows_86.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// +build windows
1+
//go:build (windows && 386) || (windows && arm)
2+
// +build windows,386 windows,arm
23

34
package process
45

@@ -90,8 +91,8 @@ func readProcessMemory(h syscall.Handle, is32BitProcess bool, address uint64, si
9091

9192
ret, _, _ := common.ProcNtWow64ReadVirtualMemory64.Call(
9293
uintptr(h),
93-
uintptr(address & 0xFFFFFFFF), //the call expects a 64-bit value
94-
uintptr(address >> 32),
94+
uintptr(address&0xFFFFFFFF), //the call expects a 64-bit value
95+
uintptr(address>>32),
9596
uintptr(unsafe.Pointer(&buffer[0])),
9697
uintptr(size), //the call expects a 64-bit value
9798
uintptr(0), //but size is 32-bit so pass zero as the high dword

0 commit comments

Comments
 (0)