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
f3c6114d
Commit
f3c6114d
authored
Nov 14, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove a redundant variable.
parent
9e772d13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
imagelist.c
dlls/comctl32/imagelist.c
+5
-8
No files found.
dlls/comctl32/imagelist.c
View file @
f3c6114d
...
...
@@ -2243,10 +2243,9 @@ ImageList_Replace (HIMAGELIST himl, INT i, HBITMAP hbmImage,
*/
INT
WINAPI
ImageList_ReplaceIcon
(
HIMAGELIST
himl
,
INT
i
,
HICON
hIcon
)
ImageList_ReplaceIcon
(
HIMAGELIST
himl
,
INT
nIndex
,
HICON
hIcon
)
{
HDC
hdcImage
;
INT
nIndex
;
HICON
hBestFitIcon
;
HBITMAP
hbmOldSrc
;
ICONINFO
ii
;
...
...
@@ -2255,14 +2254,14 @@ ImageList_ReplaceIcon (HIMAGELIST himl, INT i, HICON hIcon)
POINT
pt
;
INT
i
;
TRACE
(
"(%p %d %p)
\n
"
,
himl
,
i
,
hIcon
);
TRACE
(
"(%p %d %p)
\n
"
,
himl
,
nIndex
,
hIcon
);
if
(
!
is_valid
(
himl
))
{
ERR
(
"invalid image list
\n
"
);
return
-
1
;
}
if
((
i
>=
himl
->
cMaxImage
)
||
(
i
<
-
1
))
{
ERR
(
"invalid image index %d / %d
\n
"
,
i
,
himl
->
cMaxImage
);
if
((
nIndex
>=
himl
->
cMaxImage
)
||
(
nIndex
<
-
1
))
{
ERR
(
"invalid image index %d / %d
\n
"
,
nIndex
,
himl
->
cMaxImage
);
return
-
1
;
}
...
...
@@ -2299,15 +2298,13 @@ ImageList_ReplaceIcon (HIMAGELIST himl, INT i, HICON hIcon)
return
-
1
;
}
if
(
i
==
-
1
)
{
if
(
nIndex
==
-
1
)
{
if
(
himl
->
cCurImage
+
1
>
himl
->
cMaxImage
)
IMAGELIST_InternalExpandBitmaps
(
himl
,
1
,
0
,
0
);
nIndex
=
himl
->
cCurImage
;
himl
->
cCurImage
++
;
}
else
nIndex
=
i
;
hdcImage
=
CreateCompatibleDC
(
0
);
TRACE
(
"hdcImage=%p
\n
"
,
hdcImage
);
...
...
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