kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight saving changes' has been unset.

This commit is contained in:
Francois Gouget 2008-02-13 21:48:05 +01:00 committed by Alexandre Julliard
parent bce8b67785
commit 148061814c
1 changed files with 3 additions and 1 deletions

View File

@ -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;