reactos/lib/ole32
diff -u -r1.12 -r1.13
--- ifs.c 20 Oct 2004 09:27:43 -0000 1.12
+++ ifs.c 15 Dec 2004 11:34:52 -0000 1.13
@@ -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;