Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8a03ac58
Commit
8a03ac58
authored
Apr 30, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Check columns array size before trying to obtain rectangle.
parent
a240254d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
listview.c
dlls/comctl32/listview.c
+7
-4
No files found.
dlls/comctl32/listview.c
View file @
8a03ac58
...
...
@@ -4156,11 +4156,11 @@ static void LISTVIEW_RefreshReportGrid(LISTVIEW_INFO *infoPtr, HDC hdc)
INT
rgntype
;
INT
y
,
itemheight
;
HPEN
hPen
,
hOldPen
;
RECT
rcClip
,
rcItem
;
RECT
rcClip
,
rcItem
=
{
0
}
;
POINT
Origin
;
RANGE
colRange
;
ITERATOR
j
;
BOOL
rmost
;
BOOL
rmost
=
FALSE
;
TRACE
(
"()
\n
"
);
...
...
@@ -4183,8 +4183,11 @@ static void LISTVIEW_RefreshReportGrid(LISTVIEW_INFO *infoPtr, HDC hdc)
if
(
rcItem
.
left
+
Origin
.
x
<
rcClip
.
right
)
break
;
}
/* is right most vertical line visible? */
LISTVIEW_GetHeaderRect
(
infoPtr
,
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
-
1
,
&
rcItem
);
rmost
=
(
rcItem
.
right
+
Origin
.
x
<
rcClip
.
right
);
if
(
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
>
0
)
{
LISTVIEW_GetHeaderRect
(
infoPtr
,
DPA_GetPtrCount
(
infoPtr
->
hdpaColumns
)
-
1
,
&
rcItem
);
rmost
=
(
rcItem
.
right
+
Origin
.
x
<
rcClip
.
right
);
}
if
((
hPen
=
CreatePen
(
PS_SOLID
,
1
,
comctl32_color
.
clr3dFace
)))
{
...
...
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