Commit 2e7008cd authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Allow freeing locked global memory handles.

parent 1848c808
......@@ -1274,10 +1274,16 @@ HGLOBAL WINAPI GlobalReAlloc(
{
/* reallocate a moveable block */
pintern=HANDLE_TO_INTERN(hmem);
#if 0
/* Apparently Windows doesn't care whether the handle is locked at this point */
/* See also the same comment in GlobalFree() */
if(pintern->LockCount>1) {
ERR("handle 0x%08lx is still locked, cannot realloc!\n",(DWORD)hmem);
SetLastError(ERROR_INVALID_HANDLE);
} else if(size!=0)
} else
#endif
if(size!=0)
{
hnew=hmem;
if(pintern->Pointer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment