mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[FASTFAT]
Finally fix a commented out check regarding directory type while opening a FAT volume svn path=/trunk/; revision=73966
This commit is contained in:
parent
22f7d5504b
commit
b097d7ad0e
1 changed files with 3 additions and 4 deletions
|
@ -450,13 +450,12 @@ VfatCreateFile(
|
|||
{
|
||||
return STATUS_ACCESS_DENIED;
|
||||
}
|
||||
#if 0
|
||||
/* In spite of what is shown in WDK, it seems that Windows FAT driver doesn't perform that test */
|
||||
if (RequestedOptions & FILE_DIRECTORY_FILE)
|
||||
|
||||
if (BooleanFlagOn(RequestedOptions, FILE_DIRECTORY_FILE) &&
|
||||
(FileObject->RelatedFileObject == NULL || FileObject->RelatedFileObject->FsContext2 == NULL || FileObject->RelatedFileObject->FsContext == DeviceExt->VolumeFcb))
|
||||
{
|
||||
return STATUS_NOT_A_DIRECTORY;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (OpenTargetDir)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue