recent changes fix
eric
eric.pouech at wanadoo.fr
Thu Jan 10 13:50:27 CST 2002
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
-------------- next part --------------
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;
More information about the wine-patches
mailing list