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

commit a72b78558daafbe9562d43b09f1a18deb439f7ac
Author:     Serge Gautherie <[email protected]>
AuthorDate: Fri May 22 20:24:31 2020 +0200
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Thu Jun 25 21:59:02 2020 +0200

    [NTOS:MM] MiGetPageTableForProcess(): #if out unreachable code
    
    No impact.
    
    Detected by Cppcheck: unreachableCode.
    Addendum to ddaf47dec3f096666757ff2cc9892adc01da887c (r34976).
---
 ntoskrnl/mm/arm/stubs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ntoskrnl/mm/arm/stubs.c b/ntoskrnl/mm/arm/stubs.c
index e1031fee8aa..afbfdae337a 100644
--- a/ntoskrnl/mm/arm/stubs.c
+++ b/ntoskrnl/mm/arm/stubs.c
@@ -182,7 +182,9 @@ MiGetPageTableForProcess(IN PEPROCESS Process,
             //
             // THIS WHOLE PATH IS TODO
             //
+#if 1
             goto kernelHack;
+#else
             ASSERT(FALSE);
 
             //
@@ -200,6 +202,7 @@ MiGetPageTableForProcess(IN PEPROCESS Process,
             // Set it
             //
             *PointerPde = TempPde;
+#endif
         }
     }
 

Reply via email to