aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/process.c b/win32/process.c
index f001ef35a..a31023500 100644
--- a/win32/process.c
+++ b/win32/process.c
@@ -656,7 +656,7 @@ UNUSED_PARAM
656 sp->pid = pe.th32ProcessID; 656 sp->pid = pe.th32ProcessID;
657 sp->ppid = pe.th32ParentProcessID; 657 sp->ppid = pe.th32ParentProcessID;
658 658
659 if (sp->pid == GetProcessId(GetCurrentProcess())) { 659 if (sp->pid == getpid()) {
660 comm = applet_name; 660 comm = applet_name;
661 } 661 }
662 else if ((name=get_bb_string(sp->pid, pe.szExeFile, bb_comm)) != NULL) { 662 else if ((name=get_bb_string(sp->pid, pe.szExeFile, bb_comm)) != NULL) {
@@ -675,7 +675,7 @@ void FAST_FUNC read_cmdline(char *buf, int col, unsigned pid, const char *comm)
675 const char *str, *cmdline; 675 const char *str, *cmdline;
676 676
677 *buf = '\0'; 677 *buf = '\0';
678 if (pid == GetProcessId(GetCurrentProcess())) 678 if (pid == getpid())
679 cmdline = bb_command_line; 679 cmdline = bb_command_line;
680 else if ((str=get_bb_string(pid, NULL, bb_command_line)) != NULL) 680 else if ((str=get_bb_string(pid, NULL, bb_command_line)) != NULL)
681 cmdline = str; 681 cmdline = str;