From d605c0c30a5b35868a411fae66ccbf97c63d6ac2 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sat, 10 Oct 2009 12:40:20 +0000 Subject: [PATCH] [fastfat_new] - Actually add short and long names to splay tree when setting up FCB's names. svn path=/trunk/; revision=43359 --- reactos/drivers/filesystems/fastfat_new/fcb.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/filesystems/fastfat_new/fcb.c b/reactos/drivers/filesystems/fastfat_new/fcb.c index 47e5625f9e6..6ca33e6de3e 100644 --- a/reactos/drivers/filesystems/fastfat_new/fcb.c +++ b/reactos/drivers/filesystems/fastfat_new/fcb.c @@ -288,6 +288,10 @@ FatSetFcbNames(IN PFAT_IRP_CONTEXT IrpContext, /* 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,13 +318,14 @@ FatSetFcbNames(IN PFAT_IRP_CONTEXT IrpContext, 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); }