Author: fireball
Date: Tue Oct 20 12:32:37 2009
New Revision: 43643
URL:
http://svn.reactos.org/svn/reactos?rev=43643&view=rev
Log:
[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).
Modified:
trunk/reactos/drivers/filesystems/fastfat_new/dir.c
trunk/reactos/drivers/filesystems/fastfat_new/fastfat.c
Modified: trunk/reactos/drivers/filesystems/fastfat_new/dir.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat_new/dir.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat_new/dir.c [iso-8859-1] Tue Oct 20 12:32:37
2009
@@ -168,7 +168,12 @@
/* Set names */
if (FileHandle)
+ {
FatSetFcbNames(IrpContext, Fcb);
+
+ /* Ensure the full name is set */
+ FatSetFullFileNameInFcb(IrpContext, Fcb);
+ }
return Fcb;
}
Modified: trunk/reactos/drivers/filesystems/fastfat_new/fastfat.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat_new/fastfat.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat_new/fastfat.c [iso-8859-1] Tue Oct 20
12:32:37 2009
@@ -317,7 +317,7 @@
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 @@
TypeOfOpen = (*Ccb == NULL ? EaFile : UserFileOpen);
- DPRINT("Referencing a file: %Z\n",
&(*FcbOrDcb)->FullFileName);
+ DPRINT("Referencing a file: %wZ\n",
&(*FcbOrDcb)->FullFileName);
break;