diff options
Diffstat (limited to 'updater/versions_arm.go')
-rw-r--r-- | updater/versions_arm.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/updater/versions_arm.go b/updater/versions_arm.go index 2ffb4b74..f3e43ec3 100644 --- a/updater/versions_arm.go +++ b/updater/versions_arm.go @@ -6,6 +6,7 @@ package updater import ( + "debug/pe" "errors" "golang.org/x/sys/windows" @@ -17,15 +18,15 @@ func findArch() (arch string, err error) { if err2 != nil { var isWow64 bool if windows.IsWow64Process(process, &isWow64) != nil || !isWow64 { - nativeMachine = IMAGE_FILE_MACHINE_ARMNT + nativeMachine = pe.IMAGE_FILE_MACHINE_ARMNT } else { - nativeMachine = IMAGE_FILE_MACHINE_ARM64 + nativeMachine = pe.IMAGE_FILE_MACHINE_ARM64 } } switch nativeMachine { - case IMAGE_FILE_MACHINE_ARM64: + case pe.IMAGE_FILE_MACHINE_ARM64: arch = "arm64" - case IMAGE_FILE_MACHINE_ARMNT: + case pe.IMAGE_FILE_MACHINE_ARMNT: arch = "arm" default: err = errors.New("Invalid GOARCH") |