mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:02:02 +00:00
ReAlloc should be able to move memory blocks if necessary. This fixes
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
This commit is contained in:
parent
f7c812d7ec
commit
7838e0f72c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue