Author: fireball
Date: Tue Aug 10 20:08:31 2010
New Revision: 48513
URL:
http://svn.reactos.org/svn/reactos?rev=48513&view=rev
Log:
[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.
Modified:
trunk/reactos/drivers/filesystems/fastfat/create.c
Modified: trunk/reactos/drivers/filesystems/fastfat/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Tue Aug 10 20:08:31
2010
@@ -466,7 +466,7 @@
/* 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 @@
{
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)