mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
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:
parent
951e1367da
commit
76256a1bdd
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ FATAddEntry(
|
||||||
{
|
{
|
||||||
pSlots[0].alias_checksum = (((pSlots[0].alias_checksum & 1) << 7
|
pSlots[0].alias_checksum = (((pSlots[0].alias_checksum & 1) << 7
|
||||||
| ((pSlots[0].alias_checksum & 0xfe) >> 1))
|
| ((pSlots[0].alias_checksum & 0xfe) >> 1))
|
||||||
+ DirContext.DirEntry.Fat.Filename[i]);
|
+ DirContext.DirEntry.Fat.ShortName[i]);
|
||||||
}
|
}
|
||||||
/* construct slots and entry */
|
/* construct slots and entry */
|
||||||
for (i = nbSlots - 2; i >= 0; i--)
|
for (i = nbSlots - 2; i >= 0; i--)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue