Akihiro Sagawa : ole32: Use LMEM_MOVEABLE when reallocating memory.
Module: wine Branch: master Commit: 884ead472b0333aabd8597b02d554b14bcd5bff5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=884ead472b0333aabd8597b02d... Author: Akihiro Sagawa <sagawa.aki(a)gmail.com> Date: Sat Jun 1 22:01:37 2013 +0900 ole32: Use LMEM_MOVEABLE when reallocating memory. --- dlls/ole32/ifs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/ifs.c b/dlls/ole32/ifs.c index 2e70e44..8ec6bd8 100644 --- a/dlls/ole32/ifs.c +++ b/dlls/ole32/ifs.c @@ -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;
participants (1)
-
Alexandre Julliard