Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
87f119cf
Commit
87f119cf
authored
Aug 09, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix test case failures for time zones with absolute transition dates.
parent
d666143f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
time.c
dlls/kernel32/time.c
+10
-4
No files found.
dlls/kernel32/time.c
View file @
87f119cf
...
...
@@ -101,7 +101,10 @@ static int TIME_DayLightCompareDate( const SYSTEMTIME *date,
if
(
date
->
wMonth
>
compareDate
->
wMonth
)
return
1
;
/* We are in a month after the date limit. */
if
(
compareDate
->
wDayOfWeek
<=
6
)
/* if year is 0 then date is in day-of-week format, otherwise
* it's absolute date.
*/
if
(
compareDate
->
wYear
==
0
)
{
WORD
First
;
/* compareDate->wDay is interpreted as number of the week in the month
...
...
@@ -160,11 +163,14 @@ static DWORD TIME_CompTimeZoneID ( const TIME_ZONE_INFORMATION *pTZinfo,
if
(
pTZinfo
->
DaylightDate
.
wMonth
!=
0
)
{
if
(
pTZinfo
->
StandardDate
.
wMonth
==
0
||
pTZinfo
->
StandardDate
.
wDay
<
1
||
/* if year is 0 then date is in day-of-week format, otherwise
* it's absolute date.
*/
if
(
pTZinfo
->
StandardDate
.
wYear
==
0
&&
(
pTZinfo
->
StandardDate
.
wDay
<
1
||
pTZinfo
->
StandardDate
.
wDay
>
5
||
pTZinfo
->
DaylightDate
.
wDay
<
1
||
pTZinfo
->
DaylightDate
.
wDay
>
5
)
pTZinfo
->
DaylightDate
.
wDay
>
5
)
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
TIME_ZONE_ID_INVALID
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment