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
440218cf
Commit
440218cf
authored
Jul 23, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Handle NULL lParam in LVM_SETITEMSTATE.
parent
9e222c6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
listview.c
dlls/comctl32/listview.c
+1
-0
listview.c
dlls/comctl32/tests/listview.c
+4
-0
No files found.
dlls/comctl32/listview.c
View file @
440218cf
...
...
@@ -10653,6 +10653,7 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
LISTVIEW_SetItemPosition
(
infoPtr
,
(
INT
)
wParam
,
*
((
POINT
*
)
lParam
));
case
LVM_SETITEMSTATE
:
if
(
lParam
==
0
)
return
FALSE
;
return
LISTVIEW_SetItemState
(
infoPtr
,
(
INT
)
wParam
,
(
LPLVITEMW
)
lParam
);
case
LVM_SETITEMTEXTA
:
...
...
dlls/comctl32/tests/listview.c
View file @
440218cf
...
...
@@ -1963,6 +1963,10 @@ static void test_multiselect(void)
item_count
=
(
int
)
SendMessage
(
hwnd
,
LVM_GETITEMCOUNT
,
0
,
0
);
expect
(
items
,
item_count
);
/* try with NULL pointer */
r
=
SendMessageA
(
hwnd
,
LVM_SETITEMSTATE
,
0
,
(
LPARAM
)
NULL
);
expect
(
FALSE
,
r
);
/* select all, check notifications */
ListView_SetItemState
(
hwnd
,
-
1
,
0
,
LVIS_SELECTED
);
...
...
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