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
1bf4e13b
Commit
1bf4e13b
authored
Mar 15, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Mar 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use BOOL type where appropriate.
parent
0f8ae7bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
datetime.c
dlls/comctl32/datetime.c
+6
-5
No files found.
dlls/comctl32/datetime.c
View file @
1bf4e13b
...
...
@@ -217,7 +217,7 @@ DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, const SYSTEMTIME *sy
return
FALSE
;
/* Windows returns true if the date is valid but outside the limits set */
if
(
DATETIME_IsDateInValidRange
(
infoPtr
,
systime
)
==
FALSE
)
if
(
!
DATETIME_IsDateInValidRange
(
infoPtr
,
systime
)
)
return
TRUE
;
infoPtr
->
dateValid
=
TRUE
;
...
...
@@ -846,7 +846,8 @@ static void
DATETIME_ApplySelectedField
(
DATETIME_INFO
*
infoPtr
)
{
int
fieldNum
=
infoPtr
->
select
&
DTHT_DATEFIELD
;
int
i
,
val
=
0
,
clamp_day
=
0
;
int
i
,
val
=
0
;
BOOL
clamp_day
=
FALSE
;
SYSTEMTIME
date
=
infoPtr
->
date
;
int
oldyear
;
...
...
@@ -870,7 +871,7 @@ DATETIME_ApplySelectedField (DATETIME_INFO *infoPtr)
date
.
wYear
=
date
.
wYear
-
(
date
.
wYear
%
100
)
+
val
;
if
(
DATETIME_IsDateInValidRange
(
infoPtr
,
&
date
))
clamp_day
=
1
;
clamp_day
=
TRUE
;
else
date
.
wYear
=
oldyear
;
...
...
@@ -881,7 +882,7 @@ DATETIME_ApplySelectedField (DATETIME_INFO *infoPtr)
date
.
wYear
=
val
;
if
(
DATETIME_IsDateInValidRange
(
infoPtr
,
&
date
))
clamp_day
=
1
;
clamp_day
=
TRUE
;
else
date
.
wYear
=
oldyear
;
...
...
@@ -889,7 +890,7 @@ DATETIME_ApplySelectedField (DATETIME_INFO *infoPtr)
case
ONEDIGITMONTH
:
case
TWODIGITMONTH
:
date
.
wMonth
=
val
;
clamp_day
=
1
;
clamp_day
=
TRUE
;
break
;
case
ONEDIGITDAY
:
case
TWODIGITDAY
:
...
...
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