recent changes fix

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

 



better not access a memory block after it has been destroyed

A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
Name: winmm_drv
ChangeLog: fix potential memory issue
GenDate: 2002/01/10 19:47:51 UTC
ModifiedFiles: dlls/winmm/driver.c
AddedFiles: 
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/winmm/driver.c,v
retrieving revision 1.12
diff -u -u -r1.12 driver.c
--- dlls/winmm/driver.c	24 Dec 2001 20:30:25 -0000	1.12
+++ dlls/winmm/driver.c	8 Jan 2002 06:39:34 -0000
@@ -166,10 +166,10 @@
 	    LPDRVCONFIGINFO16	dci16 = MapSL(lParam2);
             HeapFree( GetProcessHeap(), 0, MapSL(dci16->lpszDCISectionName) );
             HeapFree( GetProcessHeap(), 0, MapSL(dci16->lpszDCIAliasName) );
-            HeapFree( GetProcessHeap(), 0, dci16 );
             UnMapLS( lParam2 );
             UnMapLS( dci16->lpszDCISectionName );
             UnMapLS( dci16->lpszDCIAliasName );
+            HeapFree( GetProcessHeap(), 0, dci16 );
 	}
 	ret = 0;
 	break;

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

  Powered by Linux