From f59d86824e980b30913f94689a17e90c1c8c4f1f Mon Sep 17 00:00:00 2001
From: cracyc
Date: Thu, 2 Nov 2023 16:31:31 -0500
Subject: [PATCH] Allow freeing of 0 size hglobal.
---
krnl386/global.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/krnl386/global.c b/krnl386/global.c
index 7b1d0cd938..8f163b9d19 100644
--- a/krnl386/global.c
+++ b/krnl386/global.c
@@ -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) );