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
a783d2a3
Commit
a783d2a3
authored
Mar 15, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Add an invalid stream test.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
83c078b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
dmime.c
dlls/dmime/tests/dmime.c
+14
-0
No files found.
dlls/dmime/tests/dmime.c
View file @
a783d2a3
...
@@ -723,6 +723,7 @@ static void test_parsedescriptor(void)
...
@@ -723,6 +723,7 @@ static void test_parsedescriptor(void)
};
};
FOURCC
empty
[]
=
{
FOURCC_RIFF
,
~
0
,
0
};
FOURCC
empty
[]
=
{
FOURCC_RIFF
,
~
0
,
0
};
FOURCC
inam
[]
=
{
FOURCC_RIFF
,
~
0
,
FOURCC_LIST
,
~
0
,
mmioFOURCC
(
'I'
,
'N'
,
'A'
,
'M'
),
0
,
0
};
FOURCC
inam
[]
=
{
FOURCC_RIFF
,
~
0
,
FOURCC_LIST
,
~
0
,
mmioFOURCC
(
'I'
,
'N'
,
'A'
,
'M'
),
0
,
0
};
FOURCC
noriff
[]
=
{
mmioFOURCC
(
'J'
,
'U'
,
'N'
,
'K'
),
0
};
#define X(class) &CLSID_ ## class, #class
#define X(class) &CLSID_ ## class, #class
#define Y(form) form, #form
#define Y(form) form, #form
const
struct
{
const
struct
{
...
@@ -808,6 +809,19 @@ static void test_parsedescriptor(void)
...
@@ -808,6 +809,19 @@ static void test_parsedescriptor(void)
ok
(
!
desc
.
dwValidData
,
"Got valid data %#x, expected 0
\n
"
,
desc
.
dwValidData
);
ok
(
!
desc
.
dwValidData
,
"Got valid data %#x, expected 0
\n
"
,
desc
.
dwValidData
);
IStream_Release
(
stream
);
IStream_Release
(
stream
);
/* Not a RIFF stream */
stream
=
gen_riff_stream
(
noriff
);
memset
(
&
desc
,
0
,
sizeof
(
desc
));
desc
.
dwSize
=
sizeof
(
desc
);
hr
=
IDirectMusicObject_ParseDescriptor
(
dmo
,
stream
,
&
desc
);
if
(
forms
[
i
].
needs_size
)
ok
(
hr
==
DMUS_E_CHUNKNOTFOUND
,
"ParseDescriptor failed: %08x, expected DMUS_E_CHUNKNOTFOUND
\n
"
,
hr
);
else
ok
(
hr
==
E_FAIL
,
"ParseDescriptor failed: %08x, expected E_FAIL
\n
"
,
hr
);
ok
(
!
desc
.
dwValidData
,
"Got valid data %#x, expected 0
\n
"
,
desc
.
dwValidData
);
IStream_Release
(
stream
);
/* All desc chunks */
/* All desc chunks */
alldesc
[
1
]
=
forms
[
i
].
form
;
alldesc
[
1
]
=
forms
[
i
].
form
;
stream
=
gen_riff_stream
(
alldesc
);
stream
=
gen_riff_stream
(
alldesc
);
...
...
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