Skip to content

Commit 34c439c

Browse files
fix: missing time
1 parent daca893 commit 34c439c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,7 @@ UPDATE: This is done now!!
15511551

15521552
parentPid = entry.th32ParentProcessID; // this gets the pid of the PARENT pid (if there hopefully is one)
15531553
parentPids.emplace_back(entry.th32ParentProcessID); // adds above to list
1554+
ULONGLONG parentTime = GetProcessCreationTime(entry.th32ParentProcessID);
15541555

15551556
if (parentPid == 0 || parentPid == 4 || parentTime == 0 || parentTime >= creationTime) {
15561557
// we can't be sure if the parent actually exists and windows isn't lying to us,

0 commit comments

Comments
 (0)