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
20eb2f99
Commit
20eb2f99
authored
Sep 29, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix LVM_GETITEM/LVIF_STATE so it only returns the bits it
has been asked for, and sets all the others to zero (with conformance test).
parent
3a03248a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
listview.c
dlls/comctl32/listview.c
+1
-1
listview.c
dlls/comctl32/tests/listview.c
+10
-0
No files found.
dlls/comctl32/listview.c
View file @
20eb2f99
...
...
@@ -5364,7 +5364,7 @@ static BOOL LISTVIEW_GetItemT(LISTVIEW_INFO *infoPtr, LPLVITEMW lpLVItem, BOOL i
/* ... the state field (this one is different due to uCallbackmask) */
if
(
lpLVItem
->
mask
&
LVIF_STATE
)
{
lpLVItem
->
state
=
lpItem
->
state
;
lpLVItem
->
state
=
lpItem
->
state
&
lpLVItem
->
stateMask
;
if
(
dispInfo
.
item
.
mask
&
LVIF_STATE
)
{
lpLVItem
->
state
&=
~
dispInfo
.
item
.
stateMask
;
...
...
dlls/comctl32/tests/listview.c
View file @
20eb2f99
...
...
@@ -189,6 +189,16 @@ static void test_checkboxes(void)
r
=
SendMessage
(
hwnd
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
item
.
state
==
0x2aaa
,
"state %x
\n
"
,
item
.
state
);
/* Check that only the bits we asked for are returned,
* and that all the others are set to zero
*/
item
.
iItem
=
3
;
item
.
mask
=
LVIF_STATE
;
item
.
stateMask
=
0xf000
;
item
.
state
=
0xffff
;
r
=
SendMessage
(
hwnd
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
item
.
state
==
0x2000
,
"state %x
\n
"
,
item
.
state
);
/* Set the style again and check that doesn't change an item's state */
r
=
SendMessage
(
hwnd
,
LVM_SETEXTENDEDLISTVIEWSTYLE
,
LVS_EX_CHECKBOXES
,
LVS_EX_CHECKBOXES
);
ok
(
r
==
LVS_EX_CHECKBOXES
,
"ret %lx
\n
"
,
r
);
...
...
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