From a8a6e6be35a5f57791558506e014fff2bbd2d545 Mon Sep 17 00:00:00 2001 From: Dibyamartanda Samanta Date: Tue, 21 May 2024 14:40:02 +0200 Subject: [PATCH] Fixed CcComputeNextScanTime --- NTOSKRNL/CC/cclazywriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NTOSKRNL/CC/cclazywriter.cpp b/NTOSKRNL/CC/cclazywriter.cpp index bdcb581..877bd0d 100644 --- a/NTOSKRNL/CC/cclazywriter.cpp +++ b/NTOSKRNL/CC/cclazywriter.cpp @@ -27,7 +27,7 @@ CcComputeNextScanTime(PLARGE_INTEGER OldestTICKTIMEForMetadata, PLARGE_INTEGER N LARGE_INTEGER WRITE_DELAY = {0}; LARGE_INTEGER TICK_ELAPSED = {0}; - if (CcIsWriteBehindThreadpoolAtLowPriority()) + if (CcMaxWriteBehindThreads < CcNumberofWorkerThreads) {