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
fd306fb5
Commit
fd306fb5
authored
Sep 28, 2004
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- native ImageList_Remove dosn't spit out an error message when
deleting an index out of range so don't do that either - add 2 ImageList_Remove tests
parent
847c81df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
imagelist.c
dlls/comctl32/imagelist.c
+1
-1
imagelist.c
dlls/comctl32/tests/imagelist.c
+5
-0
No files found.
dlls/comctl32/imagelist.c
View file @
fd306fb5
...
...
@@ -2052,7 +2052,7 @@ ImageList_Remove (HIMAGELIST himl, INT i)
}
if
((
i
<
-
1
)
||
(
i
>=
himl
->
cCurImage
))
{
ERR
(
"index out of range! %d
\n
"
,
i
);
TRACE
(
"index out of range! %d
\n
"
,
i
);
return
FALSE
;
}
...
...
dlls/comctl32/tests/imagelist.c
View file @
fd306fb5
...
...
@@ -130,12 +130,17 @@ static BOOL DoTest1(void)
/* remove when nothing exists */
ok
(
!
ImageList_Remove
(
himl
,
0
),
"removed non-existent icon
\n
"
);
/* removing everything from an empty imagelist should succeed */
ok
(
ImageList_RemoveAll
(
himl
),
"removed non-existent icon
\n
"
);
/* add three */
ok
(
0
==
ImageList_AddIcon
(
himl
,
hicon1
),
"failed to add icon1
\n
"
);
ok
(
1
==
ImageList_AddIcon
(
himl
,
hicon2
),
"failed to add icon2
\n
"
);
ok
(
2
==
ImageList_AddIcon
(
himl
,
hicon3
),
"failed to add icon3
\n
"
);
/* remove an index out of range */
ok
(
!
ImageList_Remove
(
himl
,
4711
),
"removed non-existent icon
\n
"
);
/* remove three */
ok
(
ImageList_Remove
(
himl
,
0
),
"can't remove 0
\n
"
);
ok
(
ImageList_Remove
(
himl
,
0
),
"can't remove 0
\n
"
);
...
...
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