Author: fireball
Date: Sat Oct 10 14:40:20 2009
New Revision: 43359
URL:
http://svn.reactos.org/svn/reactos?rev=43359&view=rev
Log:
[fastfat_new]
- Actually add short and long names to splay tree when setting up FCB's names.
Modified:
trunk/reactos/drivers/filesystems/fastfat_new/fcb.c
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat_new/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat_new/fcb.c [iso-8859-1] Sat Oct 10 14:40:20
2009
@@ -288,6 +288,10 @@
/* Convert raw short name to a proper string */
Fati8dot3ToString(ShortNameRaw, FALSE, ShortName);
+ /* Add the short name link */
+ FatInsertName(IrpContext, &Fcb->ParentFcb->Dcb.SplayLinksAnsi,
&Fcb->ShortName);
+ Fcb->ShortName.Fcb = Fcb;
+
/* Get the long file name (if any) */
if (NumLFNs > 0)
{
@@ -314,12 +318,13 @@
DPRINT1("Converted long name: %wZ\n", UnicodeName);
+ /* Add the long unicode name link */
+ FatInsertName(IrpContext, &Fcb->ParentFcb->Dcb.SplayLinksUnicode,
&Fcb->LongName);
+ Fcb->LongName.Fcb = Fcb;
+
/* Indicate that this FCB has a unicode long name */
SetFlag(Fcb->State, FCB_STATE_HAS_UNICODE_NAME);
}
-
- // TODO: Add both names to the splay tree */
- //FatInsertName(
/* Mark the fact that names were added to splay trees*/
SetFlag(Fcb->State, FCB_STATE_HAS_NAMES);