Top / Processes (Windows): improves detection of system / kernel processes detection

This commit is contained in:
李通洲
2026-08-31 20:29:06 +08:00
parent 4ff931c06f
commit b5ffc32b80
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;