change erroneous malloc to HeapAlloc

Mike McCormack mike at codeweavers.com
Tue Sep 23 13:59:15 CDT 2003


ChangeLog:
* change erroneous malloc to HeapAlloc
-------------- next part --------------
Index: dlls/ole32/storage32.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/storage32.c,v
retrieving revision 1.43
diff -u -r1.43 storage32.c
--- dlls/ole32/storage32.c	11 Sep 2003 03:06:25 -0000	1.43
+++ dlls/ole32/storage32.c	22 Sep 2003 15:34:58 -0000
@@ -6209,7 +6209,7 @@
 			{
 					if(pData->dwOleObjFileNameLength < 1) /* there is no file name exist */
 						pData->dwOleObjFileNameLength = sizeof(pData->dwOleObjFileNameLength);
-					pData->pstrOleObjFileName = (CHAR *)malloc(pData->dwOleObjFileNameLength);
+					pData->pstrOleObjFileName = (CHAR *)HeapAlloc(GetProcessHeap(), 0, pData->dwOleObjFileNameLength);
 					if(pData->pstrOleObjFileName)
 					{
 						dwSize = pOleStream->lpstbl->Get(pOleStream, (void *)(pData->pstrOleObjFileName),pData->dwOleObjFileNameLength);


More information about the wine-patches mailing list