Allocate correct amount of memory.

oldstable
Ge van Geldorp 2004-12-16 14:23:16 +00:00 committed by Alexandre Julliard
parent 2e3b3ca923
commit b4bb1c931c
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ static int SetSpyedBlockTableLength ( int NewLength )
{ {
LPVOID *NewSpyedBlocks; LPVOID *NewSpyedBlocks;
if (!Malloc32.SpyedBlocks) NewSpyedBlocks = LocalAlloc(GMEM_ZEROINIT, NewLength); if (!Malloc32.SpyedBlocks) NewSpyedBlocks = LocalAlloc(GMEM_ZEROINIT, NewLength * sizeof(PVOID));
else NewSpyedBlocks = LocalReAlloc(Malloc32.SpyedBlocks, NewLength, GMEM_ZEROINIT); else NewSpyedBlocks = LocalReAlloc(Malloc32.SpyedBlocks, NewLength * sizeof(PVOID), GMEM_ZEROINIT);
if (NewSpyedBlocks) { if (NewSpyedBlocks) {
Malloc32.SpyedBlocks = NewSpyedBlocks; Malloc32.SpyedBlocks = NewSpyedBlocks;
Malloc32.SpyedBlockTableLength = NewLength; Malloc32.SpyedBlockTableLength = NewLength;