Commit 3b44d23d authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Fix to cycle ID calculation inside Service_IdentifyDisc,this was causing lots...

Fix to cycle ID calculation inside Service_IdentifyDisc,this was causing lots of "Ambiguous disc name"s

Version 0.75. Tagged as 'DOSFS-0_75'
parent 3a65ba66
/* (0.74)
/* (0.75)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.68.
*
*/
#define Module_MajorVersion_CMHG 0.74
#define Module_MajorVersion_CMHG 0.75
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 23 May 2003
#define Module_Date_CMHG 06 Jun 2003
#define Module_MajorVersion "0.74"
#define Module_Version 74
#define Module_MajorVersion "0.75"
#define Module_Version 75
#define Module_MinorVersion ""
#define Module_Date "23 May 2003"
#define Module_Date "06 Jun 2003"
#define Module_ApplicationDate "23-May-03"
#define Module_ApplicationDate "06-Jun-03"
#define Module_ComponentName "DOSFS"
#define Module_ComponentPath "RiscOS/Sources/FileSys/ImageFS/DOSFS"
#define Module_FullVersion "0.74"
#define Module_HelpVersion "0.74 (23 May 2003)"
#define Module_LibraryVersionInfo "0:74"
#define Module_FullVersion "0.75"
#define Module_HelpVersion "0.75 (06 Jun 2003)"
#define Module_LibraryVersionInfo "0:75"
......@@ -523,6 +523,9 @@ static void validatedosformat(ADFS_drecord *dr,_kernel_swi_regs *rset)
heads(dr) = 2;
}
}
/* We're certain it's a DOS disc so calculate a disc ID from the FAT contents */
for (loop = 0; loop < DOSsecsize; loop++)
discID += sector[loop] ;
}
/* In all circumstances we'd have deduced the magic number by now */
......@@ -533,13 +536,10 @@ static void validatedosformat(ADFS_drecord *dr,_kernel_swi_regs *rset)
return;
}
/* We're certain it's a DOS disc so calculate a disc ID from the FAT contents */
for (loop = 0; loop < DOSsecsize; loop++)
discID += sector[loop] ;
/* Claim the service and fill in the disc record. */
/* Get the default disc name from the Messages file. */
tracef1("DOSFS: validatedosformat: accepted disc type &%02X\n",magic);
tracef1("DOSFS: validatedosformat: cycleID was 0x%x\n", discID);
/* Lookup default disc name. */
if ((rerror = msgtrans_lookup("DEFDNM", &buf, &bufsz, 0, 0, 0, 0)) != NULL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment