Fixed another PlaySound bug (when SND_LOOP is requested).

This commit is contained in:
Eric Pouech 2002-07-08 19:35:08 +00:00 committed by Alexandre Julliard
parent e3bd1361f1
commit 80884be68c
1 changed files with 2 additions and 1 deletions

View File

@ -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)