Regression Bug in Wine MM (Bug #817)

Eric Pouech eric.pouech at wanadoo.fr
Sun Jun 23 03:43:08 CDT 2002


> > I have reported what appears to be a regression bug in Wine's
> > multimedia subsystem (Bug #817).
> 
> Correction: that should be Bug #818
does the attached patch cures the regression ?
A+
-------------- next part --------------
Name:          ps5
ChangeLog:     fixed flags handling in sndPlaySound
License:       X11
GenDate:       2002/06/23 08:42:11 UTC
ModifiedFiles: dlls/winmm/mmsystem.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/winmm/mmsystem.c,v
retrieving revision 1.59
diff -u -u -r1.59 mmsystem.c
--- dlls/winmm/mmsystem.c	4 Jun 2002 00:51:38 -0000	1.59
+++ dlls/winmm/mmsystem.c	23 Jun 2002 08:40:22 -0000
@@ -690,7 +690,7 @@
  */
 BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
 {
-    uFlags &= ~(SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC);
+    uFlags &= SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
     return MULTIMEDIA_PlaySound(pszSoundA, 0, uFlags, FALSE);
 }
 
@@ -699,7 +699,7 @@
  */
 BOOL WINAPI sndPlaySoundW(LPCWSTR pszSound, UINT uFlags)
 {
-    uFlags &= ~(SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC);
+    uFlags &= SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
     return MULTIMEDIA_PlaySound(pszSound, 0, uFlags, TRUE);
 }
 


More information about the wine-devel mailing list