comctrl32: ReAlloc should be able to move memory blocks if necessary.

This commit is contained in:
Thomas Weidenmueller 2006-01-03 12:06:40 +01:00 committed by Alexandre Julliard
parent 49943c9cf4
commit e1fd79bb89
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ LPVOID WINAPI Alloc (DWORD dwSize)
LPVOID WINAPI ReAlloc (LPVOID lpSrc, DWORD dwSize) LPVOID WINAPI ReAlloc (LPVOID lpSrc, DWORD dwSize)
{ {
if (lpSrc) if (lpSrc)
return LocalReAlloc( lpSrc, dwSize, LMEM_ZEROINIT ); return LocalReAlloc( lpSrc, dwSize, LMEM_ZEROINIT | LMEM_MOVEABLE );
else else
return LocalAlloc( LMEM_ZEROINIT, dwSize); return LocalAlloc( LMEM_ZEROINIT, dwSize);
} }