another PlaySound fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux