Skip to content

Commit

Permalink
Merge pull request otya128#1327 from cracyc/global
Browse files Browse the repository at this point in the history
Allow freeing of 0 size hglobal.
  • Loading branch information
otya128 authored Nov 4, 2023
2 parents 41df204 + f59d868 commit a44fc17
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions krnl386/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,6 @@ 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 );
clear_sel_table(sel, pArena->selCount);
memset( pArena, 0, sizeof(GLOBALARENA) );
Expand Down

0 comments on commit a44fc17

Please sign in to comment.