another PlaySound fix

Eric Pouech eric.pouech at wanadoo.fr
Sat Jul 6 07:48:37 CDT 2002


Johan Gill reported another issue with PlaySound when using the SND_LOOP
flag
(thanks for the bug report)
this should fix it (and should also close bug #769)

A+
-------------- next part --------------
Name:          mmps_loop
ChangeLog:     fixed another PlaySound bug (when SND_LOOP is requested)
License:       X11
GenDate:       2002/07/06 12:45:40 UTC
ModifiedFiles: dlls/winmm/mmsystem.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/winmm/mmsystem.c,v
retrieving revision 1.60
diff -u -u -r1.60 mmsystem.c
--- dlls/winmm/mmsystem.c	25 Jun 2002 02:58:48 -0000	1.60
+++ dlls/winmm/mmsystem.c	6 Jul 2002 12:06:40 -0000
@@ -549,10 +549,11 @@
 	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)


More information about the wine-patches mailing list