mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-22 16:41:16 +00:00
Check
Co-authored-by: SaltySnail <51403141+SaltySnail@users.noreply.github.com>
This commit is contained in:
@@ -95,8 +95,10 @@ 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())) {
|
||||||
|
if (envValue != nullptr) {
|
||||||
result.append(envValue);
|
result.append(envValue);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lastPos = match.position() + match.length();
|
lastPos = match.position() + match.length();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user