Author: ekohl
Date: Tue Dec 7 20:16:45 2010
New Revision: 49978
URL:
http://svn.reactos.org/svn/reactos?rev=49978&view=rev
Log:
[NPFS]
Enable the driver to open a directory using a relative path name.
Modified:
trunk/reactos/drivers/filesystems/npfs/create.c
Modified: trunk/reactos/drivers/filesystems/npfs/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/create.c [iso-8859-1] Tue Dec 7 20:16:45 2010
@@ -221,7 +221,8 @@
}
/* Open the root directory */
- if (FileName->Length == 2 && FileName->Buffer[0] == L'\\'
&& RelatedFileObject == NULL)
+ if ((FileName->Length == 2 && FileName->Buffer[0] == L'\\'
&& RelatedFileObject == NULL) ||
+ (FileName->Length == 0 &&
((PNPFS_CCB)RelatedFileObject->FsContext2)->Type == CCB_DIRECTORY))
{
DPRINT("Open the root directory\n");