ole32: Use LMEM_MOVEABLE when reallocating memory.

oldstable
Akihiro Sagawa 2013-06-01 22:01:37 +09:00 committed by Alexandre Julliard
parent 1451aa58a6
commit 884ead472b
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ static int SetSpyedBlockTableLength ( DWORD NewLength )
LPVOID *NewSpyedBlocks;
if (!Malloc32.SpyedBlocks) NewSpyedBlocks = LocalAlloc(LMEM_ZEROINIT, NewLength * sizeof(PVOID));
else NewSpyedBlocks = LocalReAlloc(Malloc32.SpyedBlocks, NewLength * sizeof(PVOID), LMEM_ZEROINIT);
else NewSpyedBlocks = LocalReAlloc(Malloc32.SpyedBlocks, NewLength * sizeof(PVOID), LMEM_ZEROINIT | LMEM_MOVEABLE);
if (NewSpyedBlocks) {
Malloc32.SpyedBlocks = NewSpyedBlocks;
Malloc32.SpyedBlockTableLength = NewLength;