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
15fc2369
Commit
15fc2369
authored
Jul 22, 2002
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ImageList_Remove returns TRUE when removing all images of an empty
ImageList.
parent
e1050238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
imagelist.c
dlls/comctl32/imagelist.c
+7
-7
No files found.
dlls/comctl32/imagelist.c
View file @
15fc2369
...
...
@@ -2292,6 +2292,8 @@ ImageList_Remove (HIMAGELIST himl, INT i)
HDC
hdcSrc
,
hdcDst
;
INT
cxNew
,
nCount
;
TRACE
(
"(himl=%p i=%d)
\n
"
,
himl
,
i
);
if
(
himl
==
NULL
)
{
ERR
(
"Invalid image list handle!
\n
"
);
return
FALSE
;
...
...
@@ -2302,14 +2304,13 @@ ImageList_Remove (HIMAGELIST himl, INT i)
return
FALSE
;
}
if
(
himl
->
cCurImage
==
0
)
{
ERR
(
"image list is already empty!
\n
"
);
return
FALSE
;
}
if
(
i
==
-
1
)
{
/* remove all */
TRACE
(
"remove all!
\n
"
);
if
(
himl
->
cCurImage
==
0
)
{
/* remove all on empty ImageList is allowed */
TRACE
(
"remove all on empty ImageList!
\n
"
);
return
TRUE
;
}
himl
->
cMaxImage
=
himl
->
cInitial
+
himl
->
cGrow
;
himl
->
cCurImage
=
0
;
...
...
@@ -3051,4 +3052,3 @@ ImageList_Write (HIMAGELIST himl, LPSTREAM pstm)
return
TRUE
;
}
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