mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Get the environment variable correctly.
This commit is contained in:
parent
9c7a037948
commit
df7a662965
@ -160,7 +160,9 @@ void StartCmder(std::wstring path, bool is_single_mode)
|
||||
}
|
||||
else
|
||||
{
|
||||
SetEnvironmentVariable(L"CMDER_START", GetEnvironmentVariable(L"USER_PROFILE"));
|
||||
static char buff[MAX_PATH];
|
||||
GetEnvironmentVariable(L"USER_PROFILE", buff, MAX_PATH);
|
||||
SetEnvironmentVariable(L"CMDER_START", buff);
|
||||
}
|
||||
|
||||
STARTUPINFO si = { 0 };
|
||||
|
Loading…
Reference in New Issue
Block a user