MSACM fix

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

 



this patch fixes a crash when acmFormatEnum enumeration 
was stopped before the end of the list

A+
Name:          msacm_enum
ChangeLog:     fixed bug in acmFormatTagEnumW
License:       X11
GenDate:       2002/05/10 20:34:28 UTC
ModifiedFiles: dlls/msacm/format.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/msacm/format.c,v
retrieving revision 1.15
diff -u -u -r1.15 format.c
--- dlls/msacm/format.c	26 Mar 2002 19:48:42 -0000	1.15
+++ dlls/msacm/format.c	9 May 2002 19:16:08 -0000
@@ -781,8 +780,8 @@
 			bPcmDone = TRUE;
 		    }
 		    if (!(fnCallback)((HACMDRIVERID)padid, paftd, dwInstance, padid->fdwSupport)) {
-			padid = NULL; /* to exist the two nested for loops */
-			break;
+                        acmDriverClose(had, 0);
+                        return MMSYSERR_NOERROR;
 		    }
 		}
 	    }

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

  Powered by Linux