[fastfat_new]

- When creating a DCB with a known file handle, always build a full file name, because FullFAT opening code always needs a full name.
- Fix debug prints (%Z -> %wZ).

svn path=/trunk/; revision=43643
This commit is contained in:
Aleksey Bragin 2009-10-20 10:32:37 +00:00
parent dc040195a0
commit 108af8baae
2 changed files with 7 additions and 2 deletions

View file

@ -168,8 +168,13 @@ FatCreateDcb(IN PFAT_IRP_CONTEXT IrpContext,
/* Set names */
if (FileHandle)
{
FatSetFcbNames(IrpContext, Fcb);
/* Ensure the full name is set */
FatSetFullFileNameInFcb(IrpContext, Fcb);
}
return Fcb;
}

View file

@ -317,7 +317,7 @@ FatDecodeFileObject(IN PFILE_OBJECT FileObject,
TypeOfOpen = (*Ccb == NULL ? DirectoryFile : UserDirectoryOpen);
DPRINT1("Referencing a directory: %Z\n", &(*FcbOrDcb)->FullFileName);
DPRINT1("Referencing a directory: %wZ\n", &(*FcbOrDcb)->FullFileName);
break;
/* File */
@ -327,7 +327,7 @@ FatDecodeFileObject(IN PFILE_OBJECT FileObject,
TypeOfOpen = (*Ccb == NULL ? EaFile : UserFileOpen);
DPRINT("Referencing a file: %Z\n", &(*FcbOrDcb)->FullFileName);
DPRINT("Referencing a file: %wZ\n", &(*FcbOrDcb)->FullFileName);
break;