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
dc3bf7d8
Commit
dc3bf7d8
authored
Sep 30, 2015
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs/tests: Handle failure to create PNG decoder.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
parent
72528be8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
pngformat.c
dlls/windowscodecs/tests/pngformat.c
+4
-0
No files found.
dlls/windowscodecs/tests/pngformat.c
View file @
dc3bf7d8
...
...
@@ -295,6 +295,7 @@ static IWICBitmapDecoder *create_decoder(const void *image_data, UINT image_size
hr
=
IWICImagingFactory_CreateDecoderFromStream
(
factory
,
stream
,
NULL
,
0
,
&
decoder
);
ok
(
hr
==
S_OK
,
"CreateDecoderFromStream error %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
NULL
;
hr
=
IWICBitmapDecoder_GetContainerFormat
(
decoder
,
&
format
);
ok
(
hr
==
S_OK
,
"GetContainerFormat error %#x
\n
"
,
hr
);
...
...
@@ -342,6 +343,7 @@ static void test_color_contexts(void)
decoder
=
create_decoder
(
png_no_color_profile
,
sizeof
(
png_no_color_profile
));
ok
(
decoder
!=
0
,
"Failed to load PNG image data
\n
"
);
if
(
!
decoder
)
return
;
/* global color context */
hr
=
IWICBitmapDecoder_GetColorContexts
(
decoder
,
0
,
NULL
,
NULL
);
...
...
@@ -369,6 +371,7 @@ static void test_color_contexts(void)
decoder
=
create_decoder
(
png_color_profile
,
sizeof
(
png_color_profile
));
ok
(
decoder
!=
0
,
"Failed to load PNG image data
\n
"
);
if
(
!
decoder
)
return
;
/* global color context */
count
=
0xdeadbeef
;
...
...
@@ -546,6 +549,7 @@ static void test_png_palette(void)
decoder
=
create_decoder
(
png_PLTE_tRNS
,
sizeof
(
png_PLTE_tRNS
));
ok
(
decoder
!=
0
,
"Failed to load PNG image data
\n
"
);
if
(
!
decoder
)
return
;
hr
=
IWICBitmapDecoder_GetFrame
(
decoder
,
0
,
&
frame
);
ok
(
hr
==
S_OK
,
"GetFrame error %#x
\n
"
,
hr
);
...
...
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