summaryrefslogtreecommitdiff
path: root/dos
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-16 00:11:52 +0000
committerhpa <hpa>2004-12-16 00:11:52 +0000
commit07b1ad5a3aff71558274c5be4deef92105ea19a3 (patch)
treec6a75c8d8e529f058bcc8a28c648d63db94352ec /dos
parent15fde1c40c42c1d2ea26b67149cf8e5957ad0e81 (diff)
downloadsyslinux-07b1ad5a3aff71558274c5be4deef92105ea19a3.tar.gz
MSDN says the 0x08 forms of the lock calls are OK for all filesystems,
and that if one uses 0x48 one has to fall back to 0x08 anyway
Diffstat (limited to 'dos')
-rw-r--r--dos/syslinux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dos/syslinux.c b/dos/syslinux.c
index 7d3057df..e42432a8 100644
--- a/dos/syslinux.c
+++ b/dos/syslinux.c
@@ -167,8 +167,12 @@ void lock_device(int level)
if ( dos_version < 0x0700 )
return; /* Win9x/NT only */
+#if 0
/* DOS 7.10 = Win95 OSR2 = first version with FAT32 */
lock_call = (dos_version >= 0x0710) ? 0x484A : 0x084A;
+#else
+ lock_call = 0x084A; /* MSDN says this is OK for all filesystems */
+#endif
while ( (uint8_t)lock_level < level ) {
rv = 0x444d;
@@ -192,8 +196,12 @@ void unlock_device(int level)
if ( dos_version < 0x0700 )
return; /* Win9x/NT only */
+#if 0
/* DOS 7.10 = Win95 OSR2 = first version with FAT32 */
unlock_call = (dos_version >= 0x0710) ? 0x486A : 0x086A;
+#else
+ unlock_call = 0x086A; /* MSDN says this is OK for all filesystems */
+#endif
while ( (uint8_t)lock_level > level ) {
rv = 0x440d;