https://git.reactos.org/?p=reactos.git;a=commitdiff;h=de0ce9dd028ab4d0d42c6d5f467365481b99a111

commit de0ce9dd028ab4d0d42c6d5f467365481b99a111
Author:     Serge Gautherie <[email protected]>
AuthorDate: Sun May 24 19:37:16 2020 +0200
Commit:     GitHub <[email protected]>
CommitDate: Sun May 24 19:37:16 2020 +0200

    [NTOS:EX] ExpInitializeExecutive(): Fix 'PerfMem' copypasta (#2841)
    
    Detected by Cppcheck: identicalInnerCondition.
    Addendum to commit c307d73c (r25621).
---
 ntoskrnl/ex/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/ex/init.c b/ntoskrnl/ex/init.c
index e39b00070f4..537fba3593b 100644
--- a/ntoskrnl/ex/init.c
+++ b/ntoskrnl/ex/init.c
@@ -1000,7 +1000,7 @@ ExpInitializeExecutive(IN ULONG Cpu,
             {
                 /* Read the number of pages we'll use */
                 PerfMemUsed = atol(PerfMem + 1) * (1024 * 1024 / PAGE_SIZE);
-                if (PerfMem)
+                if (PerfMemUsed)
                 {
                     /* FIXME: TODO */
                     DPRINT1("BBT performance mode not yet supported."

Reply via email to