From 03fe7016e4fc974319ba107902fac809f6a7a4ec Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Sat, 7 Feb 2026 21:45:10 +0100 Subject: [PATCH] Fix crash in game capture condition when receiving null data --- plugins/base/macro-condition-game-capture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/base/macro-condition-game-capture.cpp b/plugins/base/macro-condition-game-capture.cpp index 0ce21604..9fd9e8ed 100644 --- a/plugins/base/macro-condition-game-capture.cpp +++ b/plugins/base/macro-condition-game-capture.cpp @@ -55,17 +55,17 @@ void MacroConditionGameCapture::GetCalldataInfo(calldata_t *cd) if (!calldata_get_string(cd, "title", &title)) { blog(LOG_WARNING, "%s failed to get title", __func__); } - _title = title; + _title = title ? title : ""; const char *className = ""; if (!calldata_get_string(cd, "class", &className)) { blog(LOG_WARNING, "%s failed to get class", __func__); } - _class = className; + _class = className ? className : ""; const char *executable = ""; if (!calldata_get_string(cd, "executable", &executable)) { blog(LOG_WARNING, "%s failed to get executable", __func__); } - _executable = executable; + _executable = executable ? executable : ""; } void MacroConditionGameCapture::HookedSignalReceived(void *data, calldata_t *cd)