From 5b2db02bc1f05172a22ea945cfc338f6c39d9b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 21 Jan 2024 17:39:31 +0800 Subject: [PATCH] CI: Fix building for GCC in Windows --- CHANGELOG.md | 5 +++++ src/detection/terminalshell/terminalshell_windows.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 654acc8dc..ff2934bdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.6.2 + +Bugfixes: +* Fix building for GCC in Windows (Windows) + # 2.6.1 Features: diff --git a/src/detection/terminalshell/terminalshell_windows.c b/src/detection/terminalshell/terminalshell_windows.c index 5317ac97f..2ea0f0c74 100644 --- a/src/detection/terminalshell/terminalshell_windows.c +++ b/src/detection/terminalshell/terminalshell_windows.c @@ -86,7 +86,7 @@ bool fftsGetShellVersion(FFstrbuf* exe, const char* exeName, FFstrbuf* version); static uint32_t getShellInfo(FFShellResult* result, uint32_t pid) { - uint32_t ppid; + uint32_t ppid = 0; while (pid != 0 && getProcessInfo(pid, &ppid, &result->processName, &result->exe, &result->exeName, &result->exePath, NULL)) {