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
67819d6e
Commit
67819d6e
authored
Nov 09, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't use comparisons to FALSE.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ba87de83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
toolbar.c
dlls/comctl32/toolbar.c
+2
-2
No files found.
dlls/comctl32/toolbar.c
View file @
67819d6e
...
@@ -3152,7 +3152,7 @@ TOOLBAR_CheckButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
...
@@ -3152,7 +3152,7 @@ TOOLBAR_CheckButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
bChecked
=
(
btnPtr
->
fsState
&
TBSTATE_CHECKED
)
!=
0
;
bChecked
=
(
btnPtr
->
fsState
&
TBSTATE_CHECKED
)
!=
0
;
if
(
LOWORD
(
lParam
)
==
FALSE
)
if
(
!
LOWORD
(
lParam
)
)
btnPtr
->
fsState
&=
~
TBSTATE_CHECKED
;
btnPtr
->
fsState
&=
~
TBSTATE_CHECKED
;
else
{
else
{
if
(
btnPtr
->
fsStyle
&
BTNS_GROUP
)
{
if
(
btnPtr
->
fsStyle
&
BTNS_GROUP
)
{
...
@@ -3284,7 +3284,7 @@ TOOLBAR_EnableButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
...
@@ -3284,7 +3284,7 @@ TOOLBAR_EnableButton (TOOLBAR_INFO *infoPtr, INT Id, LPARAM lParam)
bState
=
btnPtr
->
fsState
&
TBSTATE_ENABLED
;
bState
=
btnPtr
->
fsState
&
TBSTATE_ENABLED
;
/* update the toolbar button state */
/* update the toolbar button state */
if
(
LOWORD
(
lParam
)
==
FALSE
)
{
if
(
!
LOWORD
(
lParam
)
)
{
btnPtr
->
fsState
&=
~
(
TBSTATE_ENABLED
|
TBSTATE_PRESSED
);
btnPtr
->
fsState
&=
~
(
TBSTATE_ENABLED
|
TBSTATE_PRESSED
);
}
else
{
}
else
{
btnPtr
->
fsState
|=
TBSTATE_ENABLED
;
btnPtr
->
fsState
|=
TBSTATE_ENABLED
;
...
...
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