mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 00:13:16 +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;
|
||||
PVFATFCB FCB = NULL;
|
||||
NTSTATUS RC = STATUS_SUCCESS;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
PVOID SystemBuffer;
|
||||
BOOLEAN CanWait = (IrpContext->Flags & IRPCONTEXT_CANWAIT) != 0;
|
||||
|
||||
/* PRECONDITION */
|
||||
ASSERT(IrpContext);
|
||||
|
@ -1007,7 +1006,7 @@ VfatSetInformation(
|
|||
if (!(FCB->Flags & FCB_IS_PAGE_FILE))
|
||||
{
|
||||
if (!ExAcquireResourceExclusiveLite(&FCB->MainResource,
|
||||
(BOOLEAN)CanWait))
|
||||
(BOOLEAN)(IrpContext->Flags & IRPCONTEXT_CANWAIT)))
|
||||
{
|
||||
return VfatQueueRequest(IrpContext);
|
||||
}
|
||||
|
@ -1016,38 +1015,38 @@ VfatSetInformation(
|
|||
switch (FileInformationClass)
|
||||
{
|
||||
case FilePositionInformation:
|
||||
RC = VfatSetPositionInformation(IrpContext->FileObject,
|
||||
SystemBuffer);
|
||||
Status = VfatSetPositionInformation(IrpContext->FileObject,
|
||||
SystemBuffer);
|
||||
break;
|
||||
|
||||
case FileDispositionInformation:
|
||||
RC = VfatSetDispositionInformation(IrpContext->FileObject,
|
||||
FCB,
|
||||
IrpContext->DeviceObject,
|
||||
SystemBuffer);
|
||||
Status = VfatSetDispositionInformation(IrpContext->FileObject,
|
||||
FCB,
|
||||
IrpContext->DeviceObject,
|
||||
SystemBuffer);
|
||||
break;
|
||||
|
||||
case FileAllocationInformation:
|
||||
case FileEndOfFileInformation:
|
||||
RC = VfatSetAllocationSizeInformation(IrpContext->FileObject,
|
||||
FCB,
|
||||
IrpContext->DeviceExt,
|
||||
(PLARGE_INTEGER)SystemBuffer);
|
||||
Status = VfatSetAllocationSizeInformation(IrpContext->FileObject,
|
||||
FCB,
|
||||
IrpContext->DeviceExt,
|
||||
(PLARGE_INTEGER)SystemBuffer);
|
||||
break;
|
||||
|
||||
case FileBasicInformation:
|
||||
RC = VfatSetBasicInformation(IrpContext->FileObject,
|
||||
FCB,
|
||||
IrpContext->DeviceExt,
|
||||
SystemBuffer);
|
||||
Status = VfatSetBasicInformation(IrpContext->FileObject,
|
||||
FCB,
|
||||
IrpContext->DeviceExt,
|
||||
SystemBuffer);
|
||||
break;
|
||||
|
||||
case FileRenameInformation:
|
||||
RC = STATUS_NOT_IMPLEMENTED;
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
break;
|
||||
|
||||
default:
|
||||
RC = STATUS_NOT_SUPPORTED;
|
||||
Status = STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
if (!(FCB->Flags & FCB_IS_PAGE_FILE))
|
||||
|
@ -1055,12 +1054,12 @@ VfatSetInformation(
|
|||
ExReleaseResourceLite(&FCB->MainResource);
|
||||
}
|
||||
|
||||
IrpContext->Irp->IoStatus.Status = RC;
|
||||
IrpContext->Irp->IoStatus.Status = Status;
|
||||
IrpContext->Irp->IoStatus.Information = 0;
|
||||
IoCompleteRequest(IrpContext->Irp, IO_NO_INCREMENT);
|
||||
VfatFreeIrpContext(IrpContext);
|
||||
|
||||
return RC;
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue