From a77ce98811ba6040dafec8f75b5387ae5b2813aa Mon Sep 17 00:00:00 2001 From: Javier Date: Wed, 13 Apr 2022 02:47:39 +0200 Subject: fix sft leak --- int21dos.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'int21dos.h') diff --git a/int21dos.h b/int21dos.h index 30aa68b..0a04ac0 100644 --- a/int21dos.h +++ b/int21dos.h @@ -298,6 +298,13 @@ static inline DOSLOL __far * dos_get_list_of_lists(void); __value [es bx] \ __modify [ax] +static inline uint16_t dos_sft_decref(DOSSFT __far *sft); +#pragma aux dos_sft_decref = \ + "mov ax, 0x1208" \ + "int 0x2F" \ + __parm [es di] \ + __value [ax] + // Network redirector interface enum DOS_REDIR_SUBFUNCTION { -- cgit v1.2.3