mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[FASTFAT]
- Fix an if condition in VfatCreateFile causing opening a volume to always return access denied - Fix some DPRINT issues - Powered by VS11 svn path=/trunk/; revision=55127
This commit is contained in:
@@ -453,7 +453,7 @@ VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
|
||||
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);
|
||||
|
||||
@@ -85,8 +85,8 @@ VfatHasFileSystem(PDEVICE_OBJECT DeviceToMount,
|
||||
}
|
||||
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);
|
||||
|
||||
@@ -355,7 +355,7 @@ VfatWriteFileData(PVFAT_IRP_CONTEXT IrpContext,
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user