Author: tfaber
Date: Mon Jan 23 19:36:59 2012
New Revision: 55127
URL:
http://svn.reactos.org/svn/reactos?rev=55127&view=rev
Log:
[FASTFAT]
- Fix an if condition in VfatCreateFile causing opening a volume to always return access
denied
- Fix some DPRINT issues
- Powered by VS11
Modified:
trunk/reactos/drivers/filesystems/fastfat/create.c
trunk/reactos/drivers/filesystems/fastfat/fsctl.c
trunk/reactos/drivers/filesystems/fastfat/rw.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] Mon Jan 23 19:36:59
2012
@@ -453,7 +453,7 @@
if (FileObject->FileName.Length == 0 &&
(FileObject->RelatedFileObject == NULL ||
FileObject->RelatedFileObject->FsContext2 != NULL))
{
- if (RequestedDisposition != FILE_OPEN ||
+ if (RequestedDisposition != FILE_OPEN &&
RequestedDisposition != FILE_OPEN_IF)
{
return(STATUS_ACCESS_DENIED);
Modified: trunk/reactos/drivers/filesystems/fastfat/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] Mon Jan 23 19:36:59
2012
@@ -85,8 +85,8 @@
}
PartitionInfoIsValid = TRUE;
DPRINT("Partition Information:\n");
- DPRINT("StartingOffset %u\n", PartitionInfo.StartingOffset.QuadPart
/ 512);
- DPRINT("PartitionLength %u\n", PartitionInfo.PartitionLength.QuadPart
/ 512);
+ DPRINT("StartingOffset %I64u\n",
PartitionInfo.StartingOffset.QuadPart / 512);
+ DPRINT("PartitionLength %I64u\n",
PartitionInfo.PartitionLength.QuadPart / 512);
DPRINT("HiddenSectors %u\n", PartitionInfo.HiddenSectors);
DPRINT("PartitionNumber %u\n", PartitionInfo.PartitionNumber);
DPRINT("PartitionType %u\n", PartitionInfo.PartitionType);
Modified: trunk/reactos/drivers/filesystems/fastfat/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/rw.c [iso-8859-1] Mon Jan 23 19:36:59 2012
@@ -355,7 +355,7 @@
DPRINT("VfatWriteFileData(DeviceExt %p, FileObject %p, "
"Length %d, WriteOffset 0x%I64x), '%wZ'\n", DeviceExt,
- IrpContext->FileObject, Length, WriteOffset,
+ IrpContext->FileObject, Length, WriteOffset.QuadPart,
&Fcb->PathNameU);
ASSERT(WriteOffset.QuadPart + Length <= Fcb->RFCB.AllocationSize.QuadPart);