mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
Check
Co-authored-by: SaltySnail <51403141+SaltySnail@users.noreply.github.com>
This commit is contained in:
parent
9d44146224
commit
c89afdf477
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user