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
af6413aa
Commit
af6413aa
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 TIFF decoder.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
parent
dc3bf7d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tiffformat.c
dlls/windowscodecs/tests/tiffformat.c
+4
-0
No files found.
dlls/windowscodecs/tests/tiffformat.c
View file @
af6413aa
...
@@ -170,6 +170,7 @@ static IWICBitmapDecoder *create_decoder(const void *image_data, UINT image_size
...
@@ -170,6 +170,7 @@ static IWICBitmapDecoder *create_decoder(const void *image_data, UINT image_size
hr
=
IWICImagingFactory_CreateDecoderFromStream
(
factory
,
stream
,
NULL
,
0
,
&
decoder
);
hr
=
IWICImagingFactory_CreateDecoderFromStream
(
factory
,
stream
,
NULL
,
0
,
&
decoder
);
ok
(
hr
==
S_OK
,
"CreateDecoderFromStream error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"CreateDecoderFromStream error %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
NULL
;
hr
=
IWICBitmapDecoder_GetContainerFormat
(
decoder
,
&
guid
);
hr
=
IWICBitmapDecoder_GetContainerFormat
(
decoder
,
&
guid
);
ok
(
hr
==
S_OK
,
"GetContainerFormat error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetContainerFormat error %#x
\n
"
,
hr
);
...
@@ -190,6 +191,7 @@ static void test_tiff_palette(void)
...
@@ -190,6 +191,7 @@ static void test_tiff_palette(void)
decoder
=
create_decoder
(
&
tiff_1bpp_data
,
sizeof
(
tiff_1bpp_data
));
decoder
=
create_decoder
(
&
tiff_1bpp_data
,
sizeof
(
tiff_1bpp_data
));
ok
(
decoder
!=
0
,
"Failed to load TIFF image data
\n
"
);
ok
(
decoder
!=
0
,
"Failed to load TIFF image data
\n
"
);
if
(
!
decoder
)
return
;
hr
=
IWICBitmapDecoder_GetFrame
(
decoder
,
0
,
&
frame
);
hr
=
IWICBitmapDecoder_GetFrame
(
decoder
,
0
,
&
frame
);
ok
(
hr
==
S_OK
,
"GetFrame error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetFrame error %#x
\n
"
,
hr
);
...
@@ -231,6 +233,7 @@ static void test_QueryCapability(void)
...
@@ -231,6 +233,7 @@ static void test_QueryCapability(void)
hr
=
IWICImagingFactory_CreateDecoder
(
factory
,
&
GUID_ContainerFormatTiff
,
NULL
,
&
decoder
);
hr
=
IWICImagingFactory_CreateDecoder
(
factory
,
&
GUID_ContainerFormatTiff
,
NULL
,
&
decoder
);
ok
(
hr
==
S_OK
,
"CreateDecoder error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"CreateDecoder error %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
frame_count
=
0xdeadbeef
;
frame_count
=
0xdeadbeef
;
hr
=
IWICBitmapDecoder_GetFrameCount
(
decoder
,
&
frame_count
);
hr
=
IWICBitmapDecoder_GetFrameCount
(
decoder
,
&
frame_count
);
...
@@ -322,6 +325,7 @@ static void test_tiff_8bpp_alpha(void)
...
@@ -322,6 +325,7 @@ static void test_tiff_8bpp_alpha(void)
decoder
=
create_decoder
(
&
tiff_8bpp_alpha
,
sizeof
(
tiff_8bpp_alpha
));
decoder
=
create_decoder
(
&
tiff_8bpp_alpha
,
sizeof
(
tiff_8bpp_alpha
));
ok
(
decoder
!=
0
,
"Failed to load TIFF image data
\n
"
);
ok
(
decoder
!=
0
,
"Failed to load TIFF image data
\n
"
);
if
(
!
decoder
)
return
;
hr
=
IWICBitmapDecoder_GetFrameCount
(
decoder
,
&
frame_count
);
hr
=
IWICBitmapDecoder_GetFrameCount
(
decoder
,
&
frame_count
);
ok
(
hr
==
S_OK
,
"GetFrameCount error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"GetFrameCount 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