mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-26 23:34:18 +02:00
dosfns, int2f: make SHARE uninstallable
Refer to https://github.com/FDOS/share/issues/10
This commit is contained in:
parent
fbc95b7cc2
commit
cedcaee5ad
@ -1395,8 +1395,10 @@ BOOL IsShareInstalled(BOOL recheck)
|
|||||||
extern unsigned char ASMPASCAL share_check(void);
|
extern unsigned char ASMPASCAL share_check(void);
|
||||||
if (recheck == FALSE)
|
if (recheck == FALSE)
|
||||||
return share_installed;
|
return share_installed;
|
||||||
if (!share_installed && share_check() == 0xff)
|
if (share_check() == 0xff)
|
||||||
share_installed = TRUE;
|
share_installed = TRUE;
|
||||||
|
else
|
||||||
|
share_installed = FALSE;
|
||||||
return share_installed;
|
return share_installed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,6 +250,7 @@ IntDosCal:
|
|||||||
SHARE_CHECK:
|
SHARE_CHECK:
|
||||||
mov ax, 0x1000
|
mov ax, 0x1000
|
||||||
int 0x2f
|
int 0x2f
|
||||||
|
test ax, "US" ; Uninstallable SHARE signature
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; DOS calls this to see if it's okay to open the file.
|
; DOS calls this to see if it's okay to open the file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user