Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7cc0b970
Commit
7cc0b970
authored
Mar 15, 2007
by
Kanit Therdsteerasukdi
Committed by
Alexandre Julliard
Mar 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: datetime: Test for out of range dates in DTM_SETSYSTEMTIME only when flag=GDT_VALID.
parent
6630439f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
datetime.c
dlls/comctl32/datetime.c
+11
-11
No files found.
dlls/comctl32/datetime.c
View file @
7cc0b970
...
...
@@ -160,18 +160,18 @@ DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, SYSTEMTIME *lprgSysT
lprgSysTimeArray
->
wYear
,
lprgSysTimeArray
->
wMonth
,
lprgSysTimeArray
->
wDay
,
lprgSysTimeArray
->
wHour
,
lprgSysTimeArray
->
wMinute
,
lprgSysTimeArray
->
wSecond
);
if
(
lprgSysTimeArray
->
wYear
<
1601
||
lprgSysTimeArray
->
wYear
>
30827
||
lprgSysTimeArray
->
wMonth
<
1
||
lprgSysTimeArray
->
wMonth
>
12
||
lprgSysTimeArray
->
wDayOfWeek
>
6
||
lprgSysTimeArray
->
wDay
<
1
||
lprgSysTimeArray
->
wDay
>
31
||
lprgSysTimeArray
->
wHour
>
23
||
lprgSysTimeArray
->
wMinute
>
59
||
lprgSysTimeArray
->
wSecond
>
59
||
lprgSysTimeArray
->
wMilliseconds
>
999
)
return
0
;
if
(
flag
==
GDT_VALID
)
{
if
(
lprgSysTimeArray
->
wYear
<
1601
||
lprgSysTimeArray
->
wYear
>
30827
||
lprgSysTimeArray
->
wMonth
<
1
||
lprgSysTimeArray
->
wMonth
>
12
||
lprgSysTimeArray
->
wDayOfWeek
>
6
||
lprgSysTimeArray
->
wDay
<
1
||
lprgSysTimeArray
->
wDay
>
31
||
lprgSysTimeArray
->
wHour
>
23
||
lprgSysTimeArray
->
wMinute
>
59
||
lprgSysTimeArray
->
wSecond
>
59
||
lprgSysTimeArray
->
wMilliseconds
>
999
)
return
0
;
infoPtr
->
dateValid
=
TRUE
;
MONTHCAL_CopyTime
(
lprgSysTimeArray
,
&
infoPtr
->
date
);
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_SETCURSEL
,
0
,
(
LPARAM
)(
&
infoPtr
->
date
));
...
...
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