mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 17:43:44 +00:00
dmusic/tests: Fixup chunk alignment in steam_end_chunk.
This commit is contained in:
parent
4ea18f87cc
commit
b6f1a1a186
1 changed files with 6 additions and 1 deletions
|
@ -85,17 +85,21 @@ static void stream_end_chunk(IStream *stream, ULARGE_INTEGER *offset)
|
|||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
hr = IStream_Seek(stream, *(LARGE_INTEGER *)&position, STREAM_SEEK_SET, NULL);
|
||||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
hr = IStream_Write(stream, &zero, (position.QuadPart & 1), NULL);
|
||||
ok(hr == S_OK, "got %#lx\n", hr);
|
||||
}
|
||||
|
||||
#define CHUNK_BEGIN(stream, type) \
|
||||
do { \
|
||||
ULARGE_INTEGER __off; \
|
||||
IStream *__stream = (stream); \
|
||||
stream_begin_chunk(stream, type, &__off); \
|
||||
do
|
||||
|
||||
#define CHUNK_RIFF(stream, form) \
|
||||
do { \
|
||||
ULARGE_INTEGER __off; \
|
||||
IStream *__stream = (stream); \
|
||||
stream_begin_chunk(stream, "RIFF", &__off); \
|
||||
IStream_Write(stream, form, 4, NULL); \
|
||||
do
|
||||
|
@ -103,13 +107,14 @@ static void stream_end_chunk(IStream *stream, ULARGE_INTEGER *offset)
|
|||
#define CHUNK_LIST(stream, form) \
|
||||
do { \
|
||||
ULARGE_INTEGER __off; \
|
||||
IStream *__stream = (stream); \
|
||||
stream_begin_chunk(stream, "LIST", &__off); \
|
||||
IStream_Write(stream, form, 4, NULL); \
|
||||
do
|
||||
|
||||
#define CHUNK_END \
|
||||
while (0); \
|
||||
stream_end_chunk(stream, &__off); \
|
||||
stream_end_chunk(__stream, &__off); \
|
||||
} while (0)
|
||||
|
||||
#define CHUNK_DATA(stream, type, data) \
|
||||
|
|
Loading…
Reference in a new issue