Co-authored-by: SaltySnail <51403141+SaltySnail@users.noreply.github.com>
This commit is contained in:
Tixx 2025-06-24 22:17:14 +02:00 committed by GitHub
parent 9d44146224
commit c89afdf477
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,9 @@ namespace Utils {
else if (match[3].matched) varName = match[3].str(); // ${VAR} else if (match[3].matched) varName = match[3].str(); // ${VAR}
if (const wchar_t* envValue = _wgetenv(varName.c_str())) { if (const wchar_t* envValue = _wgetenv(varName.c_str())) {
result.append(envValue); if (envValue != nullptr) {
result.append(envValue);
}
} }
lastPos = match.position() + match.length(); lastPos = match.position() + match.length();