mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 21:24:43 +01:00
Top / Processes (Windows): improves detection of system / kernel processes detection
This commit is contained in:
@@ -26,7 +26,7 @@ const char* ffDetectProcesses(const FFProcessesOptions* options, FFProcessesResu
|
||||
}
|
||||
|
||||
for (SYSTEM_PROCESS_INFORMATION* ptr = pstart; ; ptr = (SYSTEM_PROCESS_INFORMATION*) ((uint8_t*) ptr + ptr->NextEntryOffset)) {
|
||||
if (!options->countKprocs && ptr->CreateTime.QuadPart == 0) {
|
||||
if (!options->countKprocs && (uintptr_t) ptr->InheritedFromUniqueProcessId > 0) {
|
||||
continue;
|
||||
}
|
||||
++result->processes;
|
||||
|
||||
Reference in New Issue
Block a user