Commit c91e9c18 authored by John Ballance's avatar John Ballance
Browse files

bugfix: first entry of a directory was occasionally overwritten

Detail:
   ensure long file name pointer nulling stopped in time
Admin:
   Tested at castle
   Castel IP


Version 0.80. Tagged as 'DOSFS-0_80'
parent 0d05b48e
/* (0.79)
/* (0.80)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.68.
*
*/
#define Module_MajorVersion_CMHG 0.79
#define Module_MajorVersion_CMHG 0.80
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 30 Sep 2004
#define Module_Date_CMHG 07 Oct 2004
#define Module_MajorVersion "0.79"
#define Module_Version 79
#define Module_MajorVersion "0.80"
#define Module_Version 80
#define Module_MinorVersion ""
#define Module_Date "30 Sep 2004"
#define Module_Date "07 Oct 2004"
#define Module_ApplicationDate "30-Sep-04"
#define Module_ApplicationDate "07-Oct-04"
#define Module_ComponentName "DOSFS"
#define Module_ComponentPath "RiscOS/Sources/FileSys/ImageFS/DOSFS"
#define Module_FullVersion "0.79"
#define Module_HelpVersion "0.79 (30 Sep 2004)"
#define Module_LibraryVersionInfo "0:79"
#define Module_FullVersion "0.80"
#define Module_HelpVersion "0.80 (07 Oct 2004)"
#define Module_LibraryVersionInfo "0:80"
......@@ -1457,6 +1457,7 @@ static DIR_info *read_cache_dir(
int i;
for(i=0;i<((dirstruct->dir_size)/sizeof(DOS_direntry));i++) dirstruct->lfnp[i] = NULL;
dprintf(("","read_cache_dir: last nulled %p \n", &dirstruct->lfnp[i-1]));
//CBC: Get long file names where appropriate
DOS_direntry * fentry = (DOS_direntry*)(DI_Base(dirstruct));
......@@ -1518,7 +1519,14 @@ static DIR_info *read_cache_dir(
*offset=lfnentry->FILE_uchar12;
offset++;
}
}else dirstruct->lfnp[i+1] = NULL;
}else
{
if(i<((dirstruct->dir_size)/sizeof(DOS_direntry))-1)
{
dirstruct->lfnp[i+1] = NULL;
dprintf(("","read_cache_dir: %x nulling %p \n", (dirstruct->dir_size)/sizeof(DOS_direntry),&dirstruct->lfnp[i+1]));
}
}
i++;
}
......
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