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
d0b1b4c7
Commit
d0b1b4c7
authored
Nov 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Avoid accessing imagelist internals.
parent
ee462a78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
header.c
dlls/comctl32/header.c
+5
-5
No files found.
dlls/comctl32/header.c
View file @
d0b1b4c7
...
...
@@ -39,7 +39,6 @@
#include "winnls.h"
#include "commctrl.h"
#include "comctl32.h"
#include "imagelist.h"
#include "vssym32.h"
#include "uxtheme.h"
#include "wine/debug.h"
...
...
@@ -384,6 +383,7 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
/* cnt,txt,img,bmp */
UINT
cx
,
tx
,
ix
,
bx
,
cw
,
tw
,
iw
,
bw
;
INT
img_cx
,
img_cy
;
BITMAP
bmp
;
HEADER_PrepareCallbackItems
(
infoPtr
,
iItem
,
HDI_TEXT
|
HDI_IMAGE
);
...
...
@@ -400,8 +400,8 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
cw
=
textRect
.
right
-
textRect
.
left
+
2
*
infoPtr
->
iMargin
;
}
if
((
phdi
->
fmt
&
HDF_IMAGE
)
&&
(
infoPtr
->
himl
))
{
iw
=
i
nfoPtr
->
himl
->
cx
+
2
*
infoPtr
->
iMargin
;
if
((
phdi
->
fmt
&
HDF_IMAGE
)
&&
ImageList_GetIconSize
(
infoPtr
->
himl
,
&
img_cx
,
&
img_cy
))
{
iw
=
i
mg_
cx
+
2
*
infoPtr
->
iMargin
;
x
=
&
ix
;
w
=
&
iw
;
}
...
...
@@ -474,8 +474,8 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
if
(
iw
)
{
ImageList_DrawEx
(
infoPtr
->
himl
,
phdi
->
iImage
,
hClipDC
,
ix
,
r
.
top
+
((
INT
)
rh
-
i
nfoPtr
->
himl
->
cy
)
/
2
,
i
nfoPtr
->
himl
->
cx
,
infoPtr
->
himl
->
cy
,
CLR_DEFAULT
,
CLR_DEFAULT
,
0
);
ix
,
r
.
top
+
((
INT
)
rh
-
i
mg_
cy
)
/
2
,
i
mg_cx
,
img_
cy
,
CLR_DEFAULT
,
CLR_DEFAULT
,
0
);
}
DeleteObject
(
hClipRgn
);
...
...
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