]> Cypherpunks.ru repositories - gostls13.git/commit
time: unconditionally use RegLoadMUIString on Windows
authorqmuntal <quimmuntal@gmail.com>
Tue, 12 Sep 2023 13:32:22 +0000 (15:32 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 14 Sep 2023 07:20:34 +0000 (07:20 +0000)
commitde4ead8102c3ba5dc9475ed3e117b2c50220b4df
tree1c8798a3e9eb8e02b449f82c8638068029f960b6
parent856cf23a8acfa14756a6e9b82ace76f5604262c9
time: unconditionally use RegLoadMUIString on Windows

RegLoadMUIString is supported on Windows Vista and later, so this
should be safe to do unconditionally.

While here, also unconditionally use GetDynamicTimeZoneInformation
in syscall/windows/registry tests, since it's also supported on Windows
Vista and later.

Change-Id: Ifa32a81f4727d4810f2b9ccc814aa77a43513e59
Reviewed-on: https://go-review.googlesource.com/c/go/+/527595
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
src/internal/syscall/windows/registry/registry_test.go
src/internal/syscall/windows/registry/syscall.go
src/internal/syscall/windows/registry/value.go
src/time/zoneinfo_windows.go
src/time/zoneinfo_windows_test.go