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
c2eb206f
Commit
c2eb206f
authored
Mar 04, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs/tests: Actually test some return values (PVS-Studio).
parent
a0e28403
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
info.c
dlls/windowscodecs/tests/info.c
+1
-0
metadata.c
dlls/windowscodecs/tests/metadata.c
+11
-0
No files found.
dlls/windowscodecs/tests/info.c
View file @
c2eb206f
...
...
@@ -80,6 +80,7 @@ static void test_decoder_info(void)
int
i
;
hr
=
get_component_info
(
&
CLSID_WICBmpDecoder
,
&
info
);
ok
(
hr
==
S_OK
,
"CreateComponentInfo failed, hr=%x
\n
"
,
hr
);
hr
=
IWICComponentInfo_QueryInterface
(
info
,
&
IID_IWICBitmapDecoderInfo
,
(
void
**
)
&
decoder_info
);
ok
(
hr
==
S_OK
,
"QueryInterface failed, hr=%x
\n
"
,
hr
);
...
...
dlls/windowscodecs/tests/metadata.c
View file @
c2eb206f
...
...
@@ -965,6 +965,7 @@ static void test_metadata_png(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
containerformat
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
containerformat
,
&
GUID_MetadataFormatChunktIME
)
||
broken
(
IsEqualGUID
(
&
containerformat
,
&
GUID_MetadataFormatUnknown
))
/* Windows XP */
,
"unexpected container format
\n
"
);
...
...
@@ -1109,6 +1110,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatLSD
),
/* Logical Screen Descriptor */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1157,6 +1159,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatIMD
),
/* Image Descriptor */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1210,6 +1213,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatLSD
),
/* Logical Screen Descriptor */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1228,6 +1232,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatAPE
),
/* Application Extension */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1246,6 +1251,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatGifComment
),
/* Comment Extension */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1264,6 +1270,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatUnknown
),
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1312,6 +1319,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatIMD
),
/* Image Descriptor */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1330,6 +1338,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatGifComment
),
/* Comment Extension */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1349,6 +1358,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatUnknown
),
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
@@ -1367,6 +1377,7 @@ static void test_metadata_gif(void)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWICMetadataReader_GetMetadataFormat
(
reader
,
&
format
);
ok
(
hr
==
S_OK
,
"GetMetadataFormat failed, hr=%#x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
format
,
&
GUID_MetadataFormatGCE
),
/* Graphic Control Extension */
"wrong metadata format %s
\n
"
,
wine_dbgstr_guid
(
&
format
));
...
...
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