https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cc9607e94e1f3253fca40…
commit cc9607e94e1f3253fca4005ffd73b08a439a93cb
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Feb 3 13:34:15 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 13:35:17 2021 +0100
[NTOS:CC] Fix use of uninitialized variable
---
ntoskrnl/cc/view.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 4c094f074d5..c9a13047447 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -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)