]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/osinfo,runtime,syscall: use RtlGetVersion instead of RtlGetNtVersionNumbers
authorqmuntal <quimmuntal@gmail.com>
Tue, 12 Mar 2024 13:20:33 +0000 (14:20 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 21 Mar 2024 11:49:46 +0000 (11:49 +0000)
commitcff7267e0d77f02d582c613c272b6f8ebf1c0412
tree8275878fbb1bf0ad82dd9882d1023b6586f94dce
parent68a508cdaf3caf98b0ed3ca1bcc3046a77df1722
cmd/internal/osinfo,runtime,syscall: use RtlGetVersion instead of RtlGetNtVersionNumbers

The RtlGetNtVersionNumbers function is not documented by Microsoft.
Use RtlGetVersion instead, which is documented and available on all
supported versions of Windows.

Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-longtest,gotip-windows-arm64
Change-Id: Ibaf0e2c28e673951476c5d863a829fd166705aea
Reviewed-on: https://go-review.googlesource.com/c/go/+/571015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/osinfo/os_windows.go
src/internal/syscall/windows/mksyscall.go
src/internal/syscall/windows/version_windows.go
src/internal/syscall/windows/zsyscall_windows.go
src/runtime/defs_windows.go
src/runtime/os_windows.go
src/syscall/syscall_windows.go
src/syscall/zsyscall_windows.go