Don't check for RequestedOptions if a trailing slash is removed.
authorHartmut Birr <osexpert@googlemail.com>
Wed, 30 Nov 2005 21:29:39 +0000 (21:29 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Wed, 30 Nov 2005 21:29:39 +0000 (21:29 +0000)
svn path=/trunk/; revision=19785

reactos/drivers/fs/vfat/create.c

index 1ab211b..117721c 100644 (file)
@@ -532,11 +532,6 @@ VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
         }
         if (PathNameU.Length > sizeof(WCHAR) && PathNameU.Buffer[PathNameU.Length/sizeof(WCHAR)-1] == L'\\')
         {
-            if (!(RequestedOptions & FILE_DIRECTORY_FILE))
-            {
-                /* FIXME: Is this the right error message? */
-                return(STATUS_OBJECT_NAME_INVALID);
-            }
             PathNameU.Length -= sizeof(WCHAR);
         }