[NTOS:EX]
authorDmitry Chapyshev <dmitry@reactos.org>
Sun, 28 Aug 2016 19:28:41 +0000 (19:28 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Sun, 28 Aug 2016 19:28:41 +0000 (19:28 +0000)
- Remove duplicate checks

svn path=/trunk/; revision=72492

reactos/ntoskrnl/ex/sysinfo.c

index 21190b5..3f2f2f2 100644 (file)
@@ -1192,8 +1192,6 @@ QSI_DEF(SystemHandleInformation)
     {
         NumberOfHandles += ObGetProcessHandleCount(Process);
         Process = PsGetNextProcess(Process);
-
-        if ((Process == SystemProcess) || (Process == NULL)) break;
     }
     while ((Process != SystemProcess) && (Process != NULL));
 
@@ -1263,8 +1261,6 @@ QSI_DEF(SystemHandleInformation)
         KeLeaveCriticalRegion();
 
         Process = PsGetNextProcess(Process);
-
-        if ((Process == SystemProcess) || (Process == NULL)) break;
     }
     while ((Process != SystemProcess) && (Process != NULL));