Commit 18060ed7 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

kernel32: Restore check for StandardDate.wMonth being 0.

parent e98d1da7
...@@ -166,11 +166,12 @@ static DWORD TIME_CompTimeZoneID ( const TIME_ZONE_INFORMATION *pTZinfo, ...@@ -166,11 +166,12 @@ static DWORD TIME_CompTimeZoneID ( const TIME_ZONE_INFORMATION *pTZinfo,
/* if year is 0 then date is in day-of-week format, otherwise /* if year is 0 then date is in day-of-week format, otherwise
* it's absolute date. * it's absolute date.
*/ */
if (pTZinfo->StandardDate.wYear == 0 && if (pTZinfo->StandardDate.wMonth == 0 ||
(pTZinfo->StandardDate.wYear == 0 &&
(pTZinfo->StandardDate.wDay<1 || (pTZinfo->StandardDate.wDay<1 ||
pTZinfo->StandardDate.wDay>5 || pTZinfo->StandardDate.wDay>5 ||
pTZinfo->DaylightDate.wDay<1 || pTZinfo->DaylightDate.wDay<1 ||
pTZinfo->DaylightDate.wDay>5)) pTZinfo->DaylightDate.wDay>5)))
{ {
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
return TIME_ZONE_ID_INVALID; return TIME_ZONE_ID_INVALID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment