ReAlloc should be able to move memory blocks if necessary. This fixes
authorThomas Bluemel <thomas@reactsoft.com>
Wed, 28 Dec 2005 20:06:35 +0000 (20:06 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Wed, 28 Dec 2005 20:06:35 +0000 (20:06 +0000)
some problems I ran into: syslink control, and dynamically adding
property sheets with PropSheet_AddPage/PSM_ADDPAGE. This patch was submitted to wine-patches.

svn path=/trunk/; revision=20402

reactos/lib/comctl32/comctl32undoc.c

index 2bd0a14..aa79f88 100644 (file)
@@ -96,7 +96,7 @@ LPVOID WINAPI Alloc (DWORD dwSize)
 LPVOID WINAPI ReAlloc (LPVOID lpSrc, DWORD dwSize)
 {
     if (lpSrc)
-        return LocalReAlloc( lpSrc, dwSize, LMEM_ZEROINIT );
+        return LocalReAlloc( lpSrc, dwSize, LMEM_ZEROINIT | LMEM_MOVEABLE );
     else
         return LocalAlloc( LMEM_ZEROINIT, dwSize);
 }