mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 01:00:06 +00:00
[FASTFAT]
Pierre Schweitzer - Fix volume opening on FAT volume. Commented out a directory check as it doesn't match realized tests, in spite of what's in WDK. svn path=/trunk/; revision=48513
This commit is contained in:
parent
0fb515fa5b
commit
94c9f4008f
1 changed files with 4 additions and 1 deletions
|
@ -466,7 +466,7 @@ VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
|
|||
|
||||
/* This a open operation for the volume itself */
|
||||
if (FileObject->FileName.Length == 0 &&
|
||||
FileObject->RelatedFileObject == NULL)
|
||||
(FileObject->RelatedFileObject == NULL || FileObject->RelatedFileObject->FsContext2 != NULL))
|
||||
{
|
||||
if (RequestedDisposition == FILE_CREATE ||
|
||||
RequestedDisposition == FILE_OVERWRITE_IF ||
|
||||
|
@ -474,10 +474,13 @@ VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
|
|||
{
|
||||
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)
|
||||
{
|
||||
return(STATUS_NOT_A_DIRECTORY);
|
||||
}
|
||||
#endif
|
||||
pFcb = DeviceExt->VolumeFcb;
|
||||
pCcb = ExAllocateFromNPagedLookasideList(&VfatGlobalData->CcbLookasideList);
|
||||
if (pCcb == NULL)
|
||||
|
|
Loading…
Reference in a new issue