Paul Gofman : ntdll: Zero init reg_tzi in find_reg_tz_info().
Alexandre Julliard
julliard at winehq.org
Tue Mar 10 16:24:58 CDT 2020
Module: wine
Branch: master
Commit: 3f0cbf4691450a3acfbec1aa48e08475cb9d7196
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3f0cbf4691450a3acfbec1aa48e08475cb9d7196
Author: Paul Gofman <gofmanp at gmail.com>
Date: Mon Mar 9 21:54:23 2020 +0300
ntdll: Zero init reg_tzi in find_reg_tz_info().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48694
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
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 1d5c4f2b31..2b6b9c061c 100644
--- a/dlls/ntdll/time.c
+++ b/dlls/ntdll/time.c
@@ -797,6 +797,8 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char*
continue; \
}
+ memset(®_tzi, 0, sizeof(reg_tzi));
+
if (!reg_query_value(hSubkey, mui_stdW, REG_SZ, reg_tzi.StandardName, sizeof(reg_tzi.StandardName)))
get_value(hSubkey, stdW, REG_SZ, reg_tzi.StandardName, sizeof(reg_tzi.StandardName));
if (!reg_query_value(hSubkey, mui_dltW, REG_SZ, reg_tzi.DaylightName, sizeof(reg_tzi.DaylightName)))
More information about the wine-cvs
mailing list