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
79bb84d2
Commit
79bb84d2
authored
Nov 23, 2018
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listbox: Account for NULL item when painting ownerdrawn list.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
656f3f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
listbox.c
dlls/comctl32/listbox.c
+2
-2
No files found.
dlls/comctl32/listbox.c
View file @
79bb84d2
...
...
@@ -535,10 +535,10 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
if
(
focused
)
dis
.
itemState
|=
ODS_FOCUS
;
if
(
!
IsWindowEnabled
(
descr
->
self
))
dis
.
itemState
|=
ODS_DISABLED
;
dis
.
itemData
=
item
->
data
;
dis
.
itemData
=
item
?
item
->
data
:
0
;
dis
.
rcItem
=
*
rect
;
TRACE
(
"[%p]: drawitem %d (%s) action=%02x state=%02x rect=%s
\n
"
,
descr
->
self
,
index
,
debugstr_w
(
item
->
str
)
,
action
,
descr
->
self
,
index
,
item
?
debugstr_w
(
item
->
str
)
:
""
,
action
,
dis
.
itemState
,
wine_dbgstr_rect
(
rect
)
);
SendMessageW
(
descr
->
owner
,
WM_DRAWITEM
,
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
SelectClipRgn
(
hdc
,
hrgn
);
...
...
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