[NTOS:CC] Fix use of uninitialized variable

This commit is contained in:
Jérôme Gardou 2021-02-03 13:34:15 +01:00
parent b0c143c710
commit cc9607e94e

View file

@ -951,21 +951,21 @@ CcFlushCache (
if (vacb != NULL)
{
IO_STATUS_BLOCK VacbIosb;
if (vacb->Dirty)
{
IO_STATUS_BLOCK VacbIosb;
Status = CcRosFlushVacb(vacb, &VacbIosb);
if (!NT_SUCCESS(Status))
{
goto quit;
}
DirtyVacb = TRUE;
if (IoStatus)
IoStatus->Information += VacbIosb.Information;
}
CcRosReleaseVacb(SharedCacheMap, vacb, FALSE, FALSE);
if (IoStatus)
IoStatus->Information += VacbIosb.Information;
}
if (!DirtyVacb)