Module: wine Branch: master Commit: 148061814cec0efdc828b09eed6b447d6776174d URL: http://source.winehq.org/git/wine.git/?a=commit;h=148061814cec0efdc828b09eed... Author: Francois Gouget <fgouget(a)free.fr> Date: Wed Feb 13 21:48:05 2008 +0100 kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight saving changes' has been unset. --- dlls/kernel32/tests/time.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/tests/time.c b/dlls/kernel32/tests/time.c index 78d5386..73aae4d 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;