From 07b1ad5a3aff71558274c5be4deef92105ea19a3 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 16 Dec 2004 00:11:52 +0000 Subject: 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 --- dos/syslinux.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dos') 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; -- cgit