Fix wrong variable usage - "Filename" (8 characters long) of a directory entry was referenced instead of a "ShortName" (11 characters long). The actual bug was harmless since both arrays are defined in an union and lie at the same place in memory.

svn path=/trunk/; revision=33447
This commit is contained in:
Filip Navara 2008-05-11 18:57:07 +00:00
parent 951e1367da
commit 76256a1bdd

View file

@ -386,7 +386,7 @@ FATAddEntry(
{
pSlots[0].alias_checksum = (((pSlots[0].alias_checksum & 1) << 7
| ((pSlots[0].alias_checksum & 0xfe) >> 1))
+ DirContext.DirEntry.Fat.Filename[i]);
+ DirContext.DirEntry.Fat.ShortName[i]);
}
/* construct slots and entry */
for (i = nbSlots - 2; i >= 0; i--)