mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
The original IsWow64Process returns false on arm, always, and so IsWow64Process2 was added to account for this scenario. This isn't available on older versions of Windows, so we mark it as such using the new '?' notation. Finally, we add a test to make sure this all works and does the expected thing on different versions of Windows. Change-Id: Ic0412578cfb3f4cf6c9dc92a0028abc579bf6c85 Reviewed-on: https://go-review.googlesource.com/c/sys/+/269077 Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Trust: Jason A. Donenfeld <Jason@zx2c4.com>