Commit f8a89aa0 authored by Alexandre Julliard's avatar Alexandre Julliard

krnl386.exe: Don't try to free again an already freed global block.

parent 0270f18e
......@@ -182,6 +182,11 @@ BOOL16 GLOBAL_FreeBlock( HGLOBAL16 handle )
sel = GlobalHandleToSel16( handle );
if (!VALID_HANDLE(sel)) return FALSE;
pArena = GET_ARENA_PTR(sel);
if (!pArena->size)
{
WARN( "already free %x\n", handle );
return FALSE;
}
SELECTOR_FreeBlock( sel );
memset( pArena, 0, sizeof(GLOBALARENA) );
return TRUE;
......
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