mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 06:37:06 +00:00
[fastfat_new]
- Actually add short and long names to splay tree when setting up FCB's names. svn path=/trunk/; revision=43359
This commit is contained in:
parent
0bf0c0acf7
commit
d605c0c30a
|
@ -288,6 +288,10 @@ FatSetFcbNames(IN PFAT_IRP_CONTEXT IrpContext,
|
||||||
/* Convert raw short name to a proper string */
|
/* Convert raw short name to a proper string */
|
||||||
Fati8dot3ToString(ShortNameRaw, FALSE, ShortName);
|
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) */
|
/* Get the long file name (if any) */
|
||||||
if (NumLFNs > 0)
|
if (NumLFNs > 0)
|
||||||
{
|
{
|
||||||
|
@ -314,13 +318,14 @@ FatSetFcbNames(IN PFAT_IRP_CONTEXT IrpContext,
|
||||||
|
|
||||||
DPRINT1("Converted long name: %wZ\n", UnicodeName);
|
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 */
|
/* Indicate that this FCB has a unicode long name */
|
||||||
SetFlag(Fcb->State, FCB_STATE_HAS_UNICODE_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*/
|
/* Mark the fact that names were added to splay trees*/
|
||||||
SetFlag(Fcb->State, FCB_STATE_HAS_NAMES);
|
SetFlag(Fcb->State, FCB_STATE_HAS_NAMES);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue