Giovanni Mascellani : advapi32/tests: Check that registry time zone records have a display name.

Alexandre Julliard julliard at winehq.org
Tue Apr 27 16:08:58 CDT 2021


Module: wine
Branch: master
Commit: 4581f5081940a8ea27d50e2801124d822fd62e92
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4581f5081940a8ea27d50e2801124d822fd62e92

Author: Giovanni Mascellani <gmascellani at codeweavers.com>
Date:   Mon Apr 12 11:17:15 2021 +0200

advapi32/tests: Check that registry time zone records have a display name.

While the display name is not a member of TIME_ZONE_INFORMATION, it is
still available in the registry. In English it corresponds to the
comments preceding groups of time zones in Unicode CLDR's
windowsZones.xml.

Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/advapi32/tests/registry.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 534982565d9..66382876fa5 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -4014,6 +4014,7 @@ static void test_EnumDynamicTimeZoneInformation(void)
     HKEY key, subkey;
     WCHAR name[32];
     WCHAR keyname[128];
+    WCHAR displayname[128];
     WCHAR sysdir[MAX_PATH];
     DWORD index, ret, gle, size;
     DYNAMIC_TIME_ZONE_INFORMATION bogus_dtzi, dtzi;
@@ -4095,6 +4096,14 @@ static void test_EnumDynamicTimeZoneInformation(void)
             ok(status == ERROR_SUCCESS, "status %d name %s\n", status, wine_dbgstr_w(name));
             ok(!memcmp(&dtzi.DaylightName, name, size),
                 "expected %s, got %s\n", wine_dbgstr_w(name), wine_dbgstr_w(dtzi.DaylightName));
+
+            size = sizeof(displayname);
+            memset(displayname, 0, sizeof(displayname));
+            if (pRegLoadMUIStringW)
+                status = pRegLoadMUIStringW(subkey, L"MUI_Display", displayname, size, &size, 0, sysdir);
+            else
+                status = pRegGetValueW(subkey, NULL, L"Display", RRF_RT_REG_SZ, NULL, displayname, &size);
+            todo_wine ok(status == ERROR_SUCCESS, "status %d displayname %s\n", status, wine_dbgstr_w(displayname));
         }
         else
         {




More information about the wine-cvs mailing list