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
d84cad6a
Commit
d84cad6a
authored
Aug 19, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/imagelist: Fail to create imagelist with zero or negative image dimensions.
parent
66c9a73d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
imagelist.c
dlls/comctl32/imagelist.c
+2
-0
imagelist.c
dlls/comctl32/tests/imagelist.c
+0
-3
No files found.
dlls/comctl32/imagelist.c
View file @
d84cad6a
...
...
@@ -694,6 +694,8 @@ ImageList_Create (INT cx, INT cy, UINT flags,
TRACE
(
"(%d %d 0x%x %d %d)
\n
"
,
cx
,
cy
,
flags
,
cInitial
,
cGrow
);
if
(
cx
<=
0
||
cy
<=
0
)
return
NULL
;
/* Create the IImageList interface for the image list */
if
(
FAILED
(
ImageListImpl_CreateInstance
(
NULL
,
&
IID_IImageList
,
(
void
**
)
&
himl
)))
return
NULL
;
...
...
dlls/comctl32/tests/imagelist.c
View file @
d84cad6a
...
...
@@ -1754,7 +1754,6 @@ static void test_create(void)
{
HIMAGELIST
himl
;
todo_wine
{
/* list with zero or negative image dimensions */
himl
=
ImageList_Create
(
0
,
0
,
ILC_COLOR16
,
0
,
3
);
ok
(
himl
==
NULL
,
"got %p
\n
"
,
himl
);
...
...
@@ -1772,8 +1771,6 @@ todo_wine {
ok
(
himl
==
NULL
,
"got %p
\n
"
,
himl
);
}
}
START_TEST
(
imagelist
)
{
ULONG_PTR
ctx_cookie
;
...
...
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