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
f1a3586f
Commit
f1a3586f
authored
Feb 22, 2022
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Fix changed notification mask for inserted items.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3cd366ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
listview.c
dlls/comctl32/listview.c
+1
-1
listview.c
dlls/comctl32/tests/listview.c
+2
-2
No files found.
dlls/comctl32/listview.c
View file @
f1a3586f
...
@@ -4258,7 +4258,7 @@ static BOOL set_main_item(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL
...
@@ -4258,7 +4258,7 @@ static BOOL set_main_item(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, BOOL
nmlv
.
uNewState
=
(
item
.
state
&
~
stateMask
)
|
(
lpLVItem
->
state
&
stateMask
);
nmlv
.
uNewState
=
(
item
.
state
&
~
stateMask
)
|
(
lpLVItem
->
state
&
stateMask
);
nmlv
.
uOldState
=
item
.
state
;
nmlv
.
uOldState
=
item
.
state
;
}
}
nmlv
.
uChanged
=
uChanged
?
uChanged
:
lpLVItem
->
mask
;
nmlv
.
uChanged
=
isNew
?
LVIF_STATE
:
(
uChanged
?
uChanged
:
lpLVItem
->
mask
)
;
nmlv
.
lParam
=
item
.
lParam
;
nmlv
.
lParam
=
item
.
lParam
;
/* Send change notification if the item is not being inserted, or inserted (selected|focused),
/* Send change notification if the item is not being inserted, or inserted (selected|focused),
...
...
dlls/comctl32/tests/listview.c
View file @
f1a3586f
...
@@ -6023,7 +6023,7 @@ static void test_LVM_INSERTITEM(void)
...
@@ -6023,7 +6023,7 @@ static void test_LVM_INSERTITEM(void)
if
((
insert_item
[
i
].
mask
&
LVIF_STATE
)
&&
(
insert_item
[
i
].
state
&
(
LVIS_FOCUSED
|
LVIS_SELECTED
)))
if
((
insert_item
[
i
].
mask
&
LVIF_STATE
)
&&
(
insert_item
[
i
].
state
&
(
LVIS_FOCUSED
|
LVIS_SELECTED
)))
{
{
sprintf
(
buf
,
"%d: insert focused"
,
i
);
sprintf
(
buf
,
"%d: insert focused"
,
i
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_insert_focused0_seq
,
buf
,
insert_item
[
i
].
mask
!=
LVIF_STAT
E
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_insert_focused0_seq
,
buf
,
FALS
E
);
}
}
else
else
{
{
...
@@ -6100,7 +6100,7 @@ static void test_insertitem(void)
...
@@ -6100,7 +6100,7 @@ static void test_insertitem(void)
item
.
lParam
=
0xdeadbeef
;
item
.
lParam
=
0xdeadbeef
;
ret
=
SendMessageA
(
hwnd
,
LVM_INSERTITEMA
,
0
,
(
LPARAM
)
&
item
);
ret
=
SendMessageA
(
hwnd
,
LVM_INSERTITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
ret
==
3
,
"got %d
\n
"
,
ret
);
ok
(
ret
==
3
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_insert_selected_seq
,
"insert selected"
,
TRU
E
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_insert_selected_seq
,
"insert selected"
,
FALS
E
);
/* insert item 4 */
/* insert item 4 */
item
.
mask
=
LVIF_PARAM
;
item
.
mask
=
LVIF_PARAM
;
...
...
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