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
4718b6d0
Commit
4718b6d0
authored
Dec 13, 2000
by
Eric Kohl
Committed by
Alexandre Julliard
Dec 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash of WinZip 8.0 due to invalid image list handle.
parent
7c55d770
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
header.c
dlls/comctl32/header.c
+9
-4
No files found.
dlls/comctl32/header.c
View file @
4718b6d0
...
...
@@ -144,6 +144,8 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack)
RECT
r
;
INT
oldBkMode
;
TRACE
(
"DrawItem(iItem %d bHotTrack %d)
\n
"
,
iItem
,
bHotTrack
);
if
(
!
infoPtr
->
bRectsValid
)
HEADER_SetItemBounds
(
hwnd
);
...
...
@@ -275,7 +277,7 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack)
DeleteDC
(
hdcBitmap
);
}
if
(
phdi
->
fmt
&
HDF_IMAGE
)
{
if
(
(
phdi
->
fmt
&
HDF_IMAGE
)
&&
(
infoPtr
->
himl
)
)
{
r
.
left
+=
3
;
/* FIXME: (r.bottom- (infoPtr->himl->cy))/2 should horicontal center the image
It looks like it doesn't work as expected*/
...
...
@@ -1025,13 +1027,14 @@ HEADER_Layout (HWND hwnd, WPARAM wParam, LPARAM lParam)
static
LRESULT
HEADER_SetImageList
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
HEADER_SetImageList
(
HWND
hwnd
,
HIMAGELIST
himl
)
{
HEADER_INFO
*
infoPtr
=
HEADER_GetInfoPtr
(
hwnd
);
HIMAGELIST
himlOld
;
TRACE
(
"(himl 0x%x)
\n
"
,
(
int
)
himl
);
himlOld
=
infoPtr
->
himl
;
infoPtr
->
himl
=
(
HIMAGELIST
)
lParam
;
infoPtr
->
himl
=
himl
;
/* FIXME: Refresh needed??? */
...
...
@@ -1395,7 +1398,9 @@ HEADER_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
HEADER_DrawTrackLine
(
hwnd
,
hdc
,
infoPtr
->
xOldTrack
);
ReleaseDC
(
hwnd
,
hdc
);
if
(
HEADER_SendHeaderNotify
(
hwnd
,
HDN_ITEMCHANGINGA
,
infoPtr
->
iMoveItem
,
HDI_WIDTH
))
{
infoPtr
->
items
[
infoPtr
->
iMoveItem
].
cxy
=
infoPtr
->
nOldWidth
;
}
else
{
nWidth
=
pt
.
x
-
infoPtr
->
items
[
infoPtr
->
iMoveItem
].
rect
.
left
+
infoPtr
->
xTrackOffset
;
if
(
nWidth
<
0
)
...
...
@@ -1667,7 +1672,7 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
/* case HDM_SETHOTDIVIDER: */
case
HDM_SETIMAGELIST
:
return
HEADER_SetImageList
(
hwnd
,
wParam
,
lParam
);
return
HEADER_SetImageList
(
hwnd
,
(
HIMAGELIST
)
lParam
);
case
HDM_SETITEMA
:
return
HEADER_SetItemA
(
hwnd
,
wParam
,
lParam
);
...
...
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