summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-02-01 22:37:41 +0100
committerBenBE <BenBE@geshi.org>2021-05-23 09:22:21 +0200
commit93a44acf7e4b0a909fbd717da8a3999c46924c3d (patch)
tree62bb31c254d02501342bf5ab80f525ef19ad4ed8 /linux/LinuxProcess.c
parentb839987df7f6fc761c96b651a3dfc49eb13e879a (diff)
Move procExeDeleted flag to main Process structure
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r--linux/LinuxProcess.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index f8b48b25..bc160186 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -441,14 +441,14 @@ void LinuxProcess_makeCommandStr(Process* this) {
if (haveCommInExe)
WRITE_HIGHLIGHT(exeBasenameOffset, exeBasenameLen, commAttr, CMDLINE_HIGHLIGHT_FLAG_COMM);
WRITE_HIGHLIGHT(exeBasenameOffset, exeBasenameLen, baseAttr, CMDLINE_HIGHLIGHT_FLAG_BASENAME);
- if (lp->procExeDeleted)
+ if (this->procExeDeleted)
WRITE_HIGHLIGHT(exeBasenameOffset, exeBasenameLen, delAttr, CMDLINE_HIGHLIGHT_FLAG_DELETED);
str = stpcpy(str, procExe);
} else {
if (haveCommInExe)
WRITE_HIGHLIGHT(0, exeBasenameLen, commAttr, CMDLINE_HIGHLIGHT_FLAG_COMM);
WRITE_HIGHLIGHT(0, exeBasenameLen, baseAttr, CMDLINE_HIGHLIGHT_FLAG_BASENAME);
- if (lp->procExeDeleted)
+ if (this->procExeDeleted)
WRITE_HIGHLIGHT(0, exeBasenameLen, delAttr, CMDLINE_HIGHLIGHT_FLAG_DELETED);
str = stpcpy(str, procExe + exeBasenameOffset);
}
@@ -698,7 +698,7 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
const char* procExe;
if (this->procExe) {
attr = CRT_colors[Process_isUserlandThread(this) ? PROCESS_THREAD_BASENAME : PROCESS_BASENAME];
- if (lp->procExeDeleted)
+ if (this->procExeDeleted)
attr = CRT_colors[FAILED_READ];
procExe = this->procExe + lp->procExeBasenameOffset;
} else {

© 2014-2024 Faster IT GmbH | imprint | privacy policy