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
4e5f56a8
Commit
4e5f56a8
authored
Nov 05, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove another Nx1 assumption from ImageList_Remove().
parent
ca6be708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
imagelist.c
dlls/comctl32/imagelist.c
+4
-4
No files found.
dlls/comctl32/imagelist.c
View file @
4e5f56a8
...
...
@@ -2073,7 +2073,8 @@ ImageList_Remove (HIMAGELIST himl, INT i)
{
HBITMAP
hbmNewImage
,
hbmNewMask
;
HDC
hdcBmp
;
INT
cxNew
,
nCount
;
INT
nCount
;
SIZE
sz
;
TRACE
(
"(himl=%p i=%d)
\n
"
,
himl
,
i
);
...
...
@@ -2106,7 +2107,6 @@ ImageList_Remove (HIMAGELIST himl, INT i)
himl
->
hbmImage
=
hbmNewImage
;
if
(
himl
->
hbmMask
)
{
SIZE
sz
;
imagelist_get_bitmap_size
(
himl
,
himl
->
cMaxImage
,
himl
->
cy
,
&
sz
);
hbmNewMask
=
CreateBitmap
(
sz
.
cx
,
sz
.
cy
,
1
,
1
,
NULL
);
...
...
@@ -2121,7 +2121,6 @@ ImageList_Remove (HIMAGELIST himl, INT i)
/* create new bitmap(s) */
nCount
=
(
himl
->
cCurImage
+
himl
->
cGrow
-
1
);
cxNew
=
nCount
*
himl
->
cx
;
TRACE
(
" - Number of images: %d / %d (Old/New)
\n
"
,
himl
->
cCurImage
,
himl
->
cCurImage
-
1
);
...
...
@@ -2130,8 +2129,9 @@ ImageList_Remove (HIMAGELIST himl, INT i)
hbmNewImage
=
ImageList_CreateImage
(
himl
->
hdcImage
,
himl
,
nCount
,
himl
->
cy
);
imagelist_get_bitmap_size
(
himl
,
nCount
,
himl
->
cy
,
&
sz
);
if
(
himl
->
hbmMask
)
hbmNewMask
=
CreateBitmap
(
cxNew
,
himl
->
cy
,
1
,
1
,
NULL
);
hbmNewMask
=
CreateBitmap
(
sz
.
cx
,
sz
.
cy
,
1
,
1
,
NULL
);
else
hbmNewMask
=
0
;
/* Just to keep compiler happy! */
...
...
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