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
dcb8dd3c
Commit
dcb8dd3c
authored
Mar 02, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Don't use 0x55 to avoid any confusion when running with +heap.
parent
29ef0b90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
mmio.c
dlls/winmm/tests/mmio.c
+14
-14
No files found.
dlls/winmm/tests/mmio.c
View file @
dcb8dd3c
...
...
@@ -84,20 +84,20 @@ static void test_mmioDescend(void)
/* test various mmioDescend flags */
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDRIFF
);
ok
(
ret
==
MMIOERR_CHUNKNOTFOUND
||
ret
==
MMIOERR_INVALIDFILE
,
"mmioDescend returned %u
\n
"
,
ret
);
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ck
.
ckid
=
0
;
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDRIFF
);
ok
(
ret
==
MMIOERR_CHUNKNOTFOUND
||
ret
==
MMIOERR_INVALIDFILE
,
"mmioDescend returned %u
\n
"
,
ret
);
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ck
.
fccType
=
0
;
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDRIFF
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
...
...
@@ -105,14 +105,14 @@ static void test_mmioDescend(void)
ok
(
ck
.
fccType
==
formtypeAVI
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
0
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
ok
(
ck
.
ckid
==
FOURCC_RIFF
,
"wrong ckid: %04x
\n
"
,
ck
.
ckid
);
ok
(
ck
.
fccType
==
formtypeAVI
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
/* do NOT seek, use current file position */
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ck
.
fccType
=
0
;
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDLIST
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
...
...
@@ -120,7 +120,7 @@ static void test_mmioDescend(void)
ok
(
ck
.
fccType
==
listtypeAVIHEADER
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ck
.
ckid
=
0
;
ck
.
fccType
=
listtypeAVIHEADER
;
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDCHUNK
);
...
...
@@ -129,7 +129,7 @@ static void test_mmioDescend(void)
ok
(
ck
.
fccType
==
formtypeAVI
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
/* do NOT seek, use current file position */
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ck
.
ckid
=
FOURCC_LIST
;
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDCHUNK
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
...
...
@@ -137,7 +137,7 @@ static void test_mmioDescend(void)
ok
(
ck
.
fccType
==
listtypeAVIHEADER
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ck
.
ckid
=
FOURCC_RIFF
;
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDCHUNK
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
...
...
@@ -145,7 +145,7 @@ static void test_mmioDescend(void)
ok
(
ck
.
fccType
==
formtypeAVI
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
/* do NOT seek, use current file position */
memset
(
&
ckList
,
0x
55
,
sizeof
(
ckList
));
memset
(
&
ckList
,
0x
66
,
sizeof
(
ckList
));
ckList
.
ckid
=
0
;
ret
=
mmioDescend
(
hmmio
,
&
ckList
,
&
ck
,
MMIO_FINDCHUNK
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioDescend error %u
\n
"
,
ret
);
...
...
@@ -153,16 +153,16 @@ static void test_mmioDescend(void)
ok
(
ckList
.
fccType
==
listtypeAVIHEADER
,
"wrong fccType: %04x
\n
"
,
ckList
.
fccType
);
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDCHUNK
);
ok
(
ret
==
MMIOERR_CHUNKNOTFOUND
||
ret
==
MMIOERR_INVALIDFILE
,
"mmioDescend returned %u
\n
"
,
ret
);
ok
(
ck
.
ckid
!=
0x
55555555
,
"wrong ckid: %04x
\n
"
,
ck
.
ckid
);
ok
(
ck
.
fccType
!=
0x
55555555
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
ok
(
ck
.
dwDataOffset
!=
0x
55555555
,
"wrong dwDataOffset: %04x
\n
"
,
ck
.
dwDataOffset
);
ok
(
ck
.
ckid
!=
0x
66666666
,
"wrong ckid: %04x
\n
"
,
ck
.
ckid
);
ok
(
ck
.
fccType
!=
0x
66666666
,
"wrong fccType: %04x
\n
"
,
ck
.
fccType
);
ok
(
ck
.
dwDataOffset
!=
0x
66666666
,
"wrong dwDataOffset: %04x
\n
"
,
ck
.
dwDataOffset
);
mmioSeek
(
hmmio
,
0
,
SEEK_SET
);
memset
(
&
ck
,
0x
55
,
sizeof
(
ck
));
memset
(
&
ck
,
0x
66
,
sizeof
(
ck
));
ret
=
mmioDescend
(
hmmio
,
&
ck
,
NULL
,
MMIO_FINDRIFF
);
ok
(
ret
==
MMIOERR_CHUNKNOTFOUND
||
ret
==
MMIOERR_INVALIDFILE
,
"mmioDescend returned %u
\n
"
,
ret
);
...
...
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