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
4d2a2860
Commit
4d2a2860
authored
Jun 25, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Add another test confirming that mmioDescend does set fccType of non RIFF/LIST chunks to 0.
parent
1124555a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
mmio.c
dlls/winmm/tests/mmio.c
+28
-3
No files found.
dlls/winmm/tests/mmio.c
View file @
4d2a2860
...
...
@@ -30,9 +30,15 @@
static
DWORD
RIFF_buf
[]
=
{
FOURCC_RIFF
,
7
*
sizeof
(
DWORD
)
+
sizeof
(
MainAVIHeader
),
mmioFOURCC
(
'A'
,
'V'
,
'I'
,
' '
),
FOURCC_LIST
,
sizeof
(
DWORD
)
+
sizeof
(
MMCKINFO
)
+
sizeof
(
MainAVIHeader
),
listtypeAVIHEADER
,
ckidAVIMAINHDR
,
sizeof
(
MainAVIHeader
),
0xdeadbeef
,
0xdeadbeef
,
FOURCC_RIFF
,
32
*
sizeof
(
DWORD
),
mmioFOURCC
(
'A'
,
'V'
,
'I'
,
' '
),
FOURCC_LIST
,
29
*
sizeof
(
DWORD
),
listtypeAVIHEADER
,
ckidAVIMAINHDR
,
sizeof
(
MainAVIHeader
),
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
FOURCC_LIST
,
10
*
sizeof
(
DWORD
),
listtypeSTREAMHEADER
,
ckidSTREAMHEADER
,
7
*
sizeof
(
DWORD
),
streamtypeVIDEO
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0xdeadbeef
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
...
@@ -83,6 +89,25 @@ static void test_mmioDescend(char *fname)
(
LPCSTR
)
&
ck
.
ckid
,
ck
.
cksize
,
(
LPCSTR
)
&
ck
.
fccType
,
ck
.
dwDataOffset
,
ck
.
dwFlags
);
/* Skip chunk data */
mmioSeek
(
hmmio
,
ck
.
cksize
,
SEEK_CUR
);
ret
=
mmioDescend
(
hmmio
,
&
ckList
,
&
ckList
,
0
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
ok
(
ckList
.
ckid
==
FOURCC_LIST
,
"wrong ckid: %04x
\n
"
,
ckList
.
ckid
);
ok
(
ckList
.
fccType
==
listtypeSTREAMHEADER
,
"wrong fccType: %04x
\n
"
,
ckList
.
fccType
);
trace
(
"ckid %4.4s cksize %04x fccType %4.4s off %04x flags %04x
\n
"
,
(
LPCSTR
)
&
ckList
.
ckid
,
ckList
.
cksize
,
(
LPCSTR
)
&
ckList
.
fccType
,
ckList
.
dwDataOffset
,
ckList
.
dwFlags
);
ret
=
mmioDescend
(
hmmio
,
&
ck
,
&
ckList
,
0
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
ok
(
ck
.
ckid
==
ckidSTREAMHEADER
,
"wrong ckid: %04x
\n
"
,
ck
.
ckid
);
ok
(
ck
.
fccType
==
0
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
trace
(
"ckid %4.4s cksize %04x fccType %4.4s off %04x flags %04x
\n
"
,
(
LPCSTR
)
&
ck
.
ckid
,
ck
.
cksize
,
(
LPCSTR
)
&
ck
.
fccType
,
ck
.
dwDataOffset
,
ck
.
dwFlags
);
/* test various mmioDescend flags */
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
...
...
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