mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 07:28:19 +00:00
[FASTFAT] Addendum to d69f318
This commit is contained in:
parent
de824808b7
commit
7283f3cfd9
1 changed files with 3 additions and 4 deletions
|
@ -29,7 +29,6 @@ vfatFCBInitializeCacheFromVolume(
|
||||||
PVFATCCB newCCB;
|
PVFATCCB newCCB;
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
BOOLEAN Acquired;
|
BOOLEAN Acquired;
|
||||||
NTSTATUS Status;
|
|
||||||
|
|
||||||
/* Don't re-initialize if already done */
|
/* Don't re-initialize if already done */
|
||||||
if (BooleanFlagOn(fcb->Flags, FCB_CACHE_INITIALIZED))
|
if (BooleanFlagOn(fcb->Flags, FCB_CACHE_INITIALIZED))
|
||||||
|
@ -59,7 +58,7 @@ vfatFCBInitializeCacheFromVolume(
|
||||||
newCCB = ExAllocateFromNPagedLookasideList(&VfatGlobalData->CcbLookasideList);
|
newCCB = ExAllocateFromNPagedLookasideList(&VfatGlobalData->CcbLookasideList);
|
||||||
if (newCCB == NULL)
|
if (newCCB == NULL)
|
||||||
{
|
{
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
ObDereferenceObject(fileObject);
|
ObDereferenceObject(fileObject);
|
||||||
goto Quit;
|
goto Quit;
|
||||||
}
|
}
|
||||||
|
@ -95,7 +94,7 @@ vfatFCBInitializeCacheFromVolume(
|
||||||
|
|
||||||
vfatGrabFCB(vcb, fcb);
|
vfatGrabFCB(vcb, fcb);
|
||||||
SetFlag(fcb->Flags, FCB_CACHE_INITIALIZED);
|
SetFlag(fcb->Flags, FCB_CACHE_INITIALIZED);
|
||||||
Status = STATUS_SUCCESS;
|
status = STATUS_SUCCESS;
|
||||||
|
|
||||||
Quit:
|
Quit:
|
||||||
if (Acquired)
|
if (Acquired)
|
||||||
|
@ -103,7 +102,7 @@ Quit:
|
||||||
ExReleaseResourceLite(&vcb->DirResource);
|
ExReleaseResourceLite(&vcb->DirResource);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue