comctrl32: ReAlloc should be able to move memory blocks if necessary.
This commit is contained in:
parent
49943c9cf4
commit
e1fd79bb89
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue