Alexandre Julliard : ntdll: Silence the timezone fixme when the registry is empty.

Alexandre Julliard julliard at winehq.org
Tue Dec 17 15:58:20 CST 2019


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Dec 17 19:38:42 2019 +0100

ntdll: Silence the timezone fixme when the registry is empty.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48300
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/time.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c
index 7f79c3e4ff..1d5c4f2b31 100644
--- a/dlls/ntdll/time.c
+++ b/dlls/ntdll/time.c
@@ -854,6 +854,8 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char*
 
     NtClose(hkey);
 
+    if (idx == 1) return;  /* registry info not initialized yet */
+
     FIXME("Can't find matching timezone information in the registry for "
           "%s, bias %d, std (d/m/y): %u/%02u/%04u, dlt (d/m/y): %u/%02u/%04u\n",
           tz_name, tzi->Bias,




More information about the wine-cvs mailing list