Don't check for RequestedOptions if a trailing slash is removed.

svn path=/trunk/; revision=19785
This commit is contained in:
Hartmut Birr 2005-11-30 21:29:39 +00:00
parent a0a5cebd2d
commit 85057b1dad

View 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);
}