From 857b4dcda2e689f21e4703310de86b59b65e4d47 Mon Sep 17 00:00:00 2001 From: Akihiro Sagawa Date: Wed, 6 May 2015 21:33:15 +0900 Subject: [PATCH] winmm/tests: Fix uninitialized memory access (Valgrind). --- dlls/winmm/tests/wave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index e0232e75896..a2fe8bb367a 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -1621,10 +1621,12 @@ static void create_wav_file(char *temp_file) ok(h != NULL, "Can't open temp_file\n"); riff_chunk.fccType = mmioFOURCC('W','A','V','E'); + riff_chunk.cksize = 0; rc = mmioCreateChunk(h, &riff_chunk, MMIO_CREATERIFF); ok(rc == MMSYSERR_NOERROR, "mmioCreateChunk failed, got %u\n", rc); chunk.ckid = mmioFOURCC('f','m','t',' '); + chunk.cksize = 0; rc = mmioCreateChunk(h, &chunk, 0); ok(rc == MMSYSERR_NOERROR, "mmioCreateChunk failed, got %u\n", rc); written = mmioWrite(h, (char*)&format, sizeof(format));