From 148061814cec0efdc828b09eed6b447d6776174d Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 13 Feb 2008 21:48:05 +0100 Subject: [PATCH] kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight saving changes' has been unset. --- dlls/kernel32/tests/time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/kernel32/tests/time.c b/dlls/kernel32/tests/time.c index 78d53864921..73aae4d1fc7 100644 --- a/dlls/kernel32/tests/time.c +++ b/dlls/kernel32/tests/time.c @@ -207,7 +207,9 @@ static LONG get_tz_bias(const TIME_ZONE_INFORMATION *tzinfo, DWORD tz_id) switch (tz_id) { case TIME_ZONE_ID_DAYLIGHT: - return tzinfo->DaylightBias; + if (memcmp(&tzinfo->StandardDate, &tzinfo->DaylightDate, sizeof(tzinfo->DaylightDate)) != 0) + return tzinfo->DaylightBias; + /* fall through */ case TIME_ZONE_ID_STANDARD: return tzinfo->StandardBias;