Commit fa973b81 authored by Greg Geldorp's avatar Greg Geldorp Committed by Alexandre Julliard

winmm/tests: Don't use same buffer for both input and output.

parent 4856c299
...@@ -65,7 +65,7 @@ static void test_mmioDescend(char *fname) ...@@ -65,7 +65,7 @@ static void test_mmioDescend(char *fname)
MMRESULT ret; MMRESULT ret;
HMMIO hmmio; HMMIO hmmio;
MMIOINFO mmio; MMIOINFO mmio;
MMCKINFO ckRiff, ckList, ck; MMCKINFO ckRiff, ckList, ck, ckList2;
memset(&mmio, 0, sizeof(mmio)); memset(&mmio, 0, sizeof(mmio));
mmio.fccIOProc = fname ? FOURCC_DOS : FOURCC_MEM; mmio.fccIOProc = fname ? FOURCC_DOS : FOURCC_MEM;
...@@ -118,17 +118,17 @@ static void test_mmioDescend(char *fname) ...@@ -118,17 +118,17 @@ static void test_mmioDescend(char *fname)
ret = mmioSeek(hmmio, ck.cksize, SEEK_CUR); ret = mmioSeek(hmmio, ck.cksize, SEEK_CUR);
ok(ret == 0x58, "expected 0x58, got %#x\n", ret); ok(ret == 0x58, "expected 0x58, got %#x\n", ret);
ret = mmioDescend(hmmio, &ckList, &ckList, 0); ret = mmioDescend(hmmio, &ckList2, &ckList, 0);
ok(ret == MMSYSERR_NOERROR, "mmioDescend error %u\n", ret); ok(ret == MMSYSERR_NOERROR, "mmioDescend error %u\n", ret);
ok(ckList.ckid == FOURCC_LIST, "wrong ckid: %04x\n", ckList.ckid); ok(ckList2.ckid == FOURCC_LIST, "wrong ckid: %04x\n", ckList2.ckid);
ok(ckList.fccType == listtypeSTREAMHEADER, "wrong fccType: %04x\n", ckList.fccType); ok(ckList2.fccType == listtypeSTREAMHEADER, "wrong fccType: %04x\n", ckList2.fccType);
trace("ckid %4.4s cksize %04x fccType %4.4s off %04x flags %04x\n", trace("ckid %4.4s cksize %04x fccType %4.4s off %04x flags %04x\n",
(LPCSTR)&ckList.ckid, ckList.cksize, (LPCSTR)&ckList.fccType, (LPCSTR)&ckList2.ckid, ckList2.cksize, (LPCSTR)&ckList2.fccType,
ckList.dwDataOffset, ckList.dwFlags); ckList2.dwDataOffset, ckList2.dwFlags);
expect_buf_offset(hmmio, 100); expect_buf_offset(hmmio, 100);
ret = mmioDescend(hmmio, &ck, &ckList, 0); ret = mmioDescend(hmmio, &ck, &ckList2, 0);
ok(ret == MMSYSERR_NOERROR, "mmioDescend error %u\n", ret); ok(ret == MMSYSERR_NOERROR, "mmioDescend error %u\n", ret);
ok(ck.ckid == ckidSTREAMHEADER, "wrong ckid: %04x\n", ck.ckid); ok(ck.ckid == ckidSTREAMHEADER, "wrong ckid: %04x\n", ck.ckid);
ok(ck.fccType == 0, "wrong fccType: %04x\n", ck.fccType); ok(ck.fccType == 0, "wrong fccType: %04x\n", ck.fccType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment