From 80884be68c3488255311b4e3fd095156a0c191b6 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 8 Jul 2002 19:35:08 +0000 Subject: [PATCH] Fixed another PlaySound bug (when SND_LOOP is requested). --- dlls/winmm/mmsystem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winmm/mmsystem.c b/dlls/winmm/mmsystem.c index af2b751b9f4..6184ccbc357 100644 --- a/dlls/winmm/mmsystem.c +++ b/dlls/winmm/mmsystem.c @@ -549,10 +549,11 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg) goto errCleanUp; } + s.dwEventCount = 1L; /* for first buffer */ + do { index = 0; left = mmckInfo.cksize; - s.dwEventCount = 1L; /* for first buffer */ mmioSeek(hmmio, mmckInfo.dwDataOffset, SEEK_SET); while (left)