mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
[FASTFAT]
VfatSetInformation: - Rename the variable RC to Status. - Get rid of variable CanWait. svn path=/trunk/; revision=61253
This commit is contained in:
parent
3f339ec7b9
commit
c031a44d65
1 changed files with 20 additions and 21 deletions
|
@ -964,9 +964,8 @@ VfatSetInformation(
|
||||||
{
|
{
|
||||||
FILE_INFORMATION_CLASS FileInformationClass;
|
FILE_INFORMATION_CLASS FileInformationClass;
|
||||||
PVFATFCB FCB = NULL;
|
PVFATFCB FCB = NULL;
|
||||||
NTSTATUS RC = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
PVOID SystemBuffer;
|
PVOID SystemBuffer;
|
||||||
BOOLEAN CanWait = (IrpContext->Flags & IRPCONTEXT_CANWAIT) != 0;
|
|
||||||
|
|
||||||
/* PRECONDITION */
|
/* PRECONDITION */
|
||||||
ASSERT(IrpContext);
|
ASSERT(IrpContext);
|
||||||
|
@ -1007,7 +1006,7 @@ VfatSetInformation(
|
||||||
if (!(FCB->Flags & FCB_IS_PAGE_FILE))
|
if (!(FCB->Flags & FCB_IS_PAGE_FILE))
|
||||||
{
|
{
|
||||||
if (!ExAcquireResourceExclusiveLite(&FCB->MainResource,
|
if (!ExAcquireResourceExclusiveLite(&FCB->MainResource,
|
||||||
(BOOLEAN)CanWait))
|
(BOOLEAN)(IrpContext->Flags & IRPCONTEXT_CANWAIT)))
|
||||||
{
|
{
|
||||||
return VfatQueueRequest(IrpContext);
|
return VfatQueueRequest(IrpContext);
|
||||||
}
|
}
|
||||||
|
@ -1016,38 +1015,38 @@ VfatSetInformation(
|
||||||
switch (FileInformationClass)
|
switch (FileInformationClass)
|
||||||
{
|
{
|
||||||
case FilePositionInformation:
|
case FilePositionInformation:
|
||||||
RC = VfatSetPositionInformation(IrpContext->FileObject,
|
Status = VfatSetPositionInformation(IrpContext->FileObject,
|
||||||
SystemBuffer);
|
SystemBuffer);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileDispositionInformation:
|
case FileDispositionInformation:
|
||||||
RC = VfatSetDispositionInformation(IrpContext->FileObject,
|
Status = VfatSetDispositionInformation(IrpContext->FileObject,
|
||||||
FCB,
|
FCB,
|
||||||
IrpContext->DeviceObject,
|
IrpContext->DeviceObject,
|
||||||
SystemBuffer);
|
SystemBuffer);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileAllocationInformation:
|
case FileAllocationInformation:
|
||||||
case FileEndOfFileInformation:
|
case FileEndOfFileInformation:
|
||||||
RC = VfatSetAllocationSizeInformation(IrpContext->FileObject,
|
Status = VfatSetAllocationSizeInformation(IrpContext->FileObject,
|
||||||
FCB,
|
FCB,
|
||||||
IrpContext->DeviceExt,
|
IrpContext->DeviceExt,
|
||||||
(PLARGE_INTEGER)SystemBuffer);
|
(PLARGE_INTEGER)SystemBuffer);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileBasicInformation:
|
case FileBasicInformation:
|
||||||
RC = VfatSetBasicInformation(IrpContext->FileObject,
|
Status = VfatSetBasicInformation(IrpContext->FileObject,
|
||||||
FCB,
|
FCB,
|
||||||
IrpContext->DeviceExt,
|
IrpContext->DeviceExt,
|
||||||
SystemBuffer);
|
SystemBuffer);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FileRenameInformation:
|
case FileRenameInformation:
|
||||||
RC = STATUS_NOT_IMPLEMENTED;
|
Status = STATUS_NOT_IMPLEMENTED;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
RC = STATUS_NOT_SUPPORTED;
|
Status = STATUS_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(FCB->Flags & FCB_IS_PAGE_FILE))
|
if (!(FCB->Flags & FCB_IS_PAGE_FILE))
|
||||||
|
@ -1055,12 +1054,12 @@ VfatSetInformation(
|
||||||
ExReleaseResourceLite(&FCB->MainResource);
|
ExReleaseResourceLite(&FCB->MainResource);
|
||||||
}
|
}
|
||||||
|
|
||||||
IrpContext->Irp->IoStatus.Status = RC;
|
IrpContext->Irp->IoStatus.Status = Status;
|
||||||
IrpContext->Irp->IoStatus.Information = 0;
|
IrpContext->Irp->IoStatus.Information = 0;
|
||||||
IoCompleteRequest(IrpContext->Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(IrpContext->Irp, IO_NO_INCREMENT);
|
||||||
VfatFreeIrpContext(IrpContext);
|
VfatFreeIrpContext(IrpContext);
|
||||||
|
|
||||||
return RC;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue