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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
datetime.c
dlls/comctl32/datetime.c
+1
-1
No files found.
dlls/comctl32/datetime.c
View file @
7cc0b970
...
...
@@ -160,6 +160,7 @@ DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, SYSTEMTIME *lprgSysT
lprgSysTimeArray
->
wYear
,
lprgSysTimeArray
->
wMonth
,
lprgSysTimeArray
->
wDay
,
lprgSysTimeArray
->
wHour
,
lprgSysTimeArray
->
wMinute
,
lprgSysTimeArray
->
wSecond
);
if
(
flag
==
GDT_VALID
)
{
if
(
lprgSysTimeArray
->
wYear
<
1601
||
lprgSysTimeArray
->
wYear
>
30827
||
lprgSysTimeArray
->
wMonth
<
1
||
lprgSysTimeArray
->
wMonth
>
12
||
lprgSysTimeArray
->
wDayOfWeek
>
6
||
...
...
@@ -171,7 +172,6 @@ DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, SYSTEMTIME *lprgSysT
)
return
0
;
if
(
flag
==
GDT_VALID
)
{
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