Skip to content

Commit

Permalink
extract service names for svchost.exe processes
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou committed Oct 2, 2024
1 parent 0479cda commit 6781e2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/collectors/apps.plugin/apps_os_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,11 @@ void GetAllProcessesInfo(void) {
fix_windows_comm(p, comm);
update_pid_comm(p, comm); // will sanitize p->comm

if(!p->name)
p->name = GetNameFromCmdlineSanitized(p);
STRING *better_name = GetNameFromCmdlineSanitized(p);
if(better_name) {
string_freez(p->name);
p->name = better_name;
}

} while (Process32NextW(hSnapshot, &pe32));

Expand Down

0 comments on commit 6781e2c

Please sign in to comment.