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
fa973b81
Commit
fa973b81
authored
Jan 02, 2011
by
Greg Geldorp
Committed by
Alexandre Julliard
Jan 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Don't use same buffer for both input and output.
parent
4856c299
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mmio.c
dlls/winmm/tests/mmio.c
+7
-7
No files found.
dlls/winmm/tests/mmio.c
View file @
fa973b81
...
...
@@ -65,7 +65,7 @@ static void test_mmioDescend(char *fname)
MMRESULT
ret
;
HMMIO
hmmio
;
MMIOINFO
mmio
;
MMCKINFO
ckRiff
,
ckList
,
ck
;
MMCKINFO
ckRiff
,
ckList
,
ck
,
ckList2
;
memset
(
&
mmio
,
0
,
sizeof
(
mmio
));
mmio
.
fccIOProc
=
fname
?
FOURCC_DOS
:
FOURCC_MEM
;
...
...
@@ -118,17 +118,17 @@ static void test_mmioDescend(char *fname)
ret
=
mmioSeek
(
hmmio
,
ck
.
cksize
,
SEEK_CUR
);
ok
(
ret
==
0x58
,
"expected 0x58, got %#x
\n
"
,
ret
);
ret
=
mmioDescend
(
hmmio
,
&
ckList
,
&
ckList
,
0
);
ret
=
mmioDescend
(
hmmio
,
&
ckList
2
,
&
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
);
ok
(
ckList
2
.
ckid
==
FOURCC_LIST
,
"wrong ckid: %04x
\n
"
,
ckList2
.
ckid
);
ok
(
ckList
2
.
fccType
==
listtypeSTREAMHEADER
,
"wrong fccType: %04x
\n
"
,
ckList2
.
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
);
(
LPCSTR
)
&
ckList
2
.
ckid
,
ckList2
.
cksize
,
(
LPCSTR
)
&
ckList2
.
fccType
,
ckList
2
.
dwDataOffset
,
ckList2
.
dwFlags
);
expect_buf_offset
(
hmmio
,
100
);
ret
=
mmioDescend
(
hmmio
,
&
ck
,
&
ckList
,
0
);
ret
=
mmioDescend
(
hmmio
,
&
ck
,
&
ckList
2
,
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
);
...
...
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