From 7e1ac5e24ad2a9ed66976a6862489a74ecdc169b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 8 Feb 2024 23:15:58 +0800 Subject: [PATCH] Terminal (Windows): code cleanup --- src/detection/terminalshell/terminalshell_windows.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detection/terminalshell/terminalshell_windows.c b/src/detection/terminalshell/terminalshell_windows.c index b6cf8a9a4..69e0ca944 100644 --- a/src/detection/terminalshell/terminalshell_windows.c +++ b/src/detection/terminalshell/terminalshell_windows.c @@ -298,10 +298,11 @@ static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid) { if(!hasGui) { - //We are nested shell + //We are in nested shell ffStrbufClear(&result->processName); ffStrbufClear(&result->prettyName); ffStrbufClear(&result->exe); + ffStrbufClear(&result->exePath); result->exeName = ""; pid = ppid; continue; @@ -320,6 +321,7 @@ static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid) ffStrbufClear(&result->processName); ffStrbufClear(&result->prettyName); ffStrbufClear(&result->exe); + ffStrbufClear(&result->exePath); result->exeName = ""; return 0; }