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
c67951c7
Commit
c67951c7
authored
Jul 25, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Handle image loading failures under some XP versions.
parent
0b40df29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
image.c
dlls/gdiplus/tests/image.c
+12
-3
No files found.
dlls/gdiplus/tests/image.c
View file @
c67951c7
...
...
@@ -2702,7 +2702,13 @@ static GpImage *load_image(const BYTE *image_data, UINT image_size)
ok
(
refcount
==
1
,
"expected stream refcount 1, got %d
\n
"
,
refcount
);
status
=
GdipLoadImageFromStream
(
stream
,
&
image
);
ok
(
status
==
Ok
,
"GdipLoadImageFromStream error %d
\n
"
,
status
);
ok
(
status
==
Ok
||
broken
(
status
==
InvalidParameter
),
/* XP */
"GdipLoadImageFromStream error %d
\n
"
,
status
);
if
(
status
!=
Ok
)
{
IStream_Release
(
stream
);
return
NULL
;
}
status
=
GdipGetImageType
(
image
,
&
image_type
);
ok
(
status
==
Ok
,
"GdipGetImageType error %d
\n
"
,
status
);
...
...
@@ -2770,8 +2776,11 @@ static void test_image_properties(void)
for
(
i
=
0
;
i
<
sizeof
(
td
)
/
sizeof
(
td
[
0
]);
i
++
)
{
image
=
load_image
(
td
[
i
].
image_data
,
td
[
i
].
image_size
);
ok
(
image
!=
0
,
"%u: failed to load image data
\n
"
,
i
);
if
(
!
image
)
continue
;
if
(
!
image
)
{
trace
(
"%u: failed to load image data
\n
"
,
i
);
continue
;
}
status
=
GdipGetImageType
(
image
,
&
image_type
);
ok
(
status
==
Ok
,
"%u: GdipGetImageType error %d
\n
"
,
i
,
status
);
...
...
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