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
d6ea1bf1
Commit
d6ea1bf1
authored
Jan 04, 2007
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Check subitem is valid before calling LISTVIEW_InvalidateSubItem().
parent
2d097f70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
listview.c
dlls/comctl32/listview.c
+5
-4
No files found.
dlls/comctl32/listview.c
View file @
d6ea1bf1
...
...
@@ -3573,7 +3573,7 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, B
HWND
hwndSelf
=
infoPtr
->
hwndSelf
;
LPWSTR
pszText
=
NULL
;
BOOL
bResult
,
bChanged
=
FALSE
;
TRACE
(
"(lpLVItem=%s, isW=%d)
\n
"
,
debuglvitem_t
(
lpLVItem
,
isW
),
isW
);
if
(
!
lpLVItem
||
lpLVItem
->
iItem
<
0
||
lpLVItem
->
iItem
>=
infoPtr
->
nItemCount
)
...
...
@@ -3585,10 +3585,10 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, B
pszText
=
lpLVItem
->
pszText
;
((
LVITEMW
*
)
lpLVItem
)
->
pszText
=
textdupTtoW
(
lpLVItem
->
pszText
,
isW
);
}
/* actually set the fields */
if
(
!
is_assignable_item
(
lpLVItem
,
infoPtr
->
dwStyle
))
return
FALSE
;
if
(
lpLVItem
->
iSubItem
)
bResult
=
set_sub_item
(
infoPtr
,
lpLVItem
,
TRUE
,
&
bChanged
);
else
...
...
@@ -3601,7 +3601,8 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, const LVITEMW *lpLVItem, B
{
/* this little optimization eliminates some nasty flicker */
if
(
uView
==
LVS_REPORT
&&
!
(
infoPtr
->
dwStyle
&
LVS_OWNERDRAWFIXED
)
&&
(
!
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
)
||
lpLVItem
->
iSubItem
)
)
!
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
)
&&
lpLVItem
->
iSubItem
>
0
&&
lpLVItem
->
iSubItem
<=
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
)
LISTVIEW_InvalidateSubItem
(
infoPtr
,
lpLVItem
->
iItem
,
lpLVItem
->
iSubItem
);
else
LISTVIEW_InvalidateItem
(
infoPtr
,
lpLVItem
->
iItem
);
...
...
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