[fastfat_new]
authorAleksey Bragin <aleksey@reactos.org>
Tue, 20 Oct 2009 10:32:37 +0000 (10:32 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Tue, 20 Oct 2009 10:32:37 +0000 (10:32 +0000)
- 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

reactos/drivers/filesystems/fastfat_new/dir.c
reactos/drivers/filesystems/fastfat_new/fastfat.c

index 4d3456e..ca04e84 100644 (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;
 }
 
index 21ec0fb..64736af 100644 (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;