mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 16:47:27 -04:00
windows: copy latest changes from internal/syscall/windows
Copy of CL 4310, 6140, 17412, 17997 and 17998. Change-Id: I7db8722a1c37f033d5ce6644859ef15c58289a46 Reviewed-on: https://go-review.googlesource.com/18552 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
@@ -701,17 +701,19 @@ func TestGetMUIStringValue(t *testing.T) {
|
||||
}
|
||||
defer timezoneK.Close()
|
||||
|
||||
var tests = []struct {
|
||||
key registry.Key
|
||||
type testType struct {
|
||||
name string
|
||||
want string
|
||||
}{
|
||||
{timezoneK, "MUI_Std", syscall.UTF16ToString(dtzi.StandardName[:])},
|
||||
{timezoneK, "MUI_Dlt", syscall.UTF16ToString(dtzi.DaylightName[:])},
|
||||
}
|
||||
var tests = []testType{
|
||||
{"MUI_Std", syscall.UTF16ToString(dtzi.StandardName[:])},
|
||||
}
|
||||
if dtzi.DynamicDaylightTimeDisabled == 0 {
|
||||
tests = append(tests, testType{"MUI_Dlt", syscall.UTF16ToString(dtzi.DaylightName[:])})
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
got, err := test.key.GetMUIStringValue(test.name)
|
||||
got, err := timezoneK.GetMUIStringValue(test.name)
|
||||
if err != nil {
|
||||
t.Error("GetMUIStringValue:", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user