Adding entries to the FAT16 root dir still failed under certain conditions. The shortcut check cannot work the way it was implemented - removed it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6363 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-04-27 01:23:31 +00:00
parent 9536efae4f
commit fd83f521a9

View file

@ -1337,12 +1337,6 @@ static int add_dir_entry(struct fat_dir* dir,
/* step 2: extend the dir if necessary */
if (firstentry < 0)
{
#ifdef HAVE_FAT16SUPPORT
if (dir->file.firstcluster < 0) {
LDEBUGF("FAT16 root dir isn't extendable\n");
return -3;
}
#endif
LDEBUGF("Adding new sector(s) to dir\n");
rc = fat_seek(&dir->file, sector);
if (rc < 0)