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
175eaf10
Commit
175eaf10
authored
Aug 08, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Avoid TRUE:FALSE conditional expressions.
parent
11d35ef8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
comboex.c
dlls/comctl32/comboex.c
+1
-1
datetime.c
dlls/comctl32/datetime.c
+1
-1
monthcal.c
dlls/comctl32/monthcal.c
+2
-2
imagelist.c
dlls/comctl32/tests/imagelist.c
+1
-1
toolbar.c
dlls/comctl32/toolbar.c
+1
-1
treeview.c
dlls/comctl32/treeview.c
+1
-1
No files found.
dlls/comctl32/comboex.c
View file @
175eaf10
...
...
@@ -720,7 +720,7 @@ COMBOEX_SetExtendedStyle (COMBOEX_INFO *infoPtr, DWORD mask, DWORD style)
/* see if we need to change the word break proc on the edit */
if
((
infoPtr
->
dwExtStyle
^
dwTemp
)
&
CBES_EX_PATHWORDBREAKPROC
)
SetPathWordBreakProc
(
infoPtr
->
hwndEdit
,
(
infoPtr
->
dwExtStyle
&
CBES_EX_PATHWORDBREAKPROC
)
?
TRUE
:
FALSE
);
(
infoPtr
->
dwExtStyle
&
CBES_EX_PATHWORDBREAKPROC
)
!=
0
);
/* test if the control's appearance has changed */
mask
=
CBES_EX_NOEDITIMAGE
|
CBES_EX_NOEDITIMAGEINDENT
;
...
...
dlls/comctl32/datetime.c
View file @
175eaf10
...
...
@@ -586,7 +586,7 @@ DATETIME_IncreaseField (DATETIME_INFO *infoPtr, int number, int delta)
/* Ensure time is within bounds */
limits
=
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_GETRANGE
,
0
,
(
LPARAM
)
&
range
);
min
=
((
delta
<
0
)
?
TRUE
:
FALSE
)
;
min
=
delta
<
0
;
if
(
limits
&
(
min
?
GDTR_MIN
:
GDTR_MAX
))
{
...
...
dlls/comctl32/monthcal.c
View file @
175eaf10
...
...
@@ -372,7 +372,7 @@ static BOOL MONTHCAL_IsDateInValidRange(const MONTHCAL_INFO *infoPtr,
date
->
wMonth
=
fix_st
->
wMonth
;
}
return
fix_st
?
FALSE
:
TRUE
;
return
!
fix_st
;
}
/* Checks passed range width with configured maximum selection count
...
...
@@ -1276,7 +1276,7 @@ MONTHCAL_SetColor(MONTHCAL_INFO *infoPtr, UINT index, COLORREF color)
infoPtr
->
pens
[
PenText
]
=
CreatePen
(
PS_SOLID
,
1
,
infoPtr
->
colors
[
index
]);
}
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
index
==
MCSC_BACKGROUND
?
TRUE
:
FALSE
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
index
==
MCSC_BACKGROUND
);
return
prev
;
}
...
...
dlls/comctl32/tests/imagelist.c
View file @
175eaf10
...
...
@@ -619,7 +619,7 @@ static BOOL allocate_storage(struct my_IStream *my_is, ULONG add)
else
my_is
->
iml_data
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
my_is
->
iml_data
,
my_is
->
iml_data_size
);
return
my_is
->
iml_data
?
TRUE
:
FALSE
;
return
my_is
->
iml_data
!=
NULL
;
}
static
HRESULT
STDMETHODCALLTYPE
Test_Stream_Write
(
IStream
*
iface
,
const
void
*
pv
,
ULONG
cb
,
...
...
dlls/comctl32/toolbar.c
View file @
175eaf10
...
...
@@ -3140,7 +3140,7 @@ TOOLBAR_CheckButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
btnPtr
=
&
infoPtr
->
buttons
[
nIndex
];
bChecked
=
(
btnPtr
->
fsState
&
TBSTATE_CHECKED
)
?
TRUE
:
FALSE
;
bChecked
=
(
btnPtr
->
fsState
&
TBSTATE_CHECKED
)
!=
0
;
if
(
LOWORD
(
lParam
)
==
FALSE
)
btnPtr
->
fsState
&=
~
TBSTATE_CHECKED
;
...
...
dlls/comctl32/treeview.c
View file @
175eaf10
...
...
@@ -1612,7 +1612,7 @@ TREEVIEW_DeleteItem(TREEVIEW_INFO *infoPtr, HTREEITEM item)
static
LRESULT
TREEVIEW_SetRedraw
(
TREEVIEW_INFO
*
infoPtr
,
WPARAM
wParam
)
{
infoPtr
->
bRedraw
=
wParam
?
TRUE
:
FALSE
;
infoPtr
->
bRedraw
=
wParam
!=
0
;
if
(
infoPtr
->
bRedraw
)
{
...
...
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