dlls/ole32/ifs.c

Ge van Geldorp gvg at reactos.com
Wed Dec 15 05:41:54 CST 2004


Changelog:
  Ge van Geldorp <gvg at reactos.com>
  - Allocate correct amount of memory.

Index: dlls/ole32/ifs.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/ifs.c,v
retrieving revision 1.45
diff -u -r1.45 ifs.c
--- dlls/ole32/ifs.c	7 Oct 2004 03:06:49 -0000	1.45
+++ dlls/ole32/ifs.c	15 Dec 2004 12:32:38 -0000
@@ -77,8 +77,8 @@
 {
 	LPVOID *NewSpyedBlocks;
 
-	if (!Malloc32.SpyedBlocks) NewSpyedBlocks = LocalAlloc(GMEM_ZEROINIT, NewLength);
-	else NewSpyedBlocks = LocalReAlloc(Malloc32.SpyedBlocks, NewLength, GMEM_ZEROINIT);
+	if (!Malloc32.SpyedBlocks) NewSpyedBlocks = LocalAlloc(GMEM_ZEROINIT, NewLength * sizeof(PVOID));
+	else NewSpyedBlocks = LocalReAlloc(Malloc32.SpyedBlocks, NewLength * sizeof(PVOID), GMEM_ZEROINIT);
 	if (NewSpyedBlocks) {
 		Malloc32.SpyedBlocks = NewSpyedBlocks;
 		Malloc32.SpyedBlockTableLength = NewLength;



More information about the wine-patches mailing list