dosfns, int2f: make SHARE uninstallable

Refer to https://github.com/FDOS/share/issues/10
This commit is contained in:
C. Masloch 2021-10-28 10:09:18 +02:00 committed by Kenneth J Davis
parent fbc95b7cc2
commit cedcaee5ad
2 changed files with 4 additions and 1 deletions

View File

@ -1395,8 +1395,10 @@ BOOL IsShareInstalled(BOOL recheck)
extern unsigned char ASMPASCAL share_check(void);
if (recheck == FALSE)
return share_installed;
if (!share_installed && share_check() == 0xff)
if (share_check() == 0xff)
share_installed = TRUE;
else
share_installed = FALSE;
return share_installed;
}

View File

@ -250,6 +250,7 @@ IntDosCal:
SHARE_CHECK:
mov ax, 0x1000
int 0x2f
test ax, "US" ; Uninstallable SHARE signature
ret
; DOS calls this to see if it's okay to open the file.