mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 00:39:08 +08:00
Use the correct type and initialise it.
This commit is contained in:
parent
df7a662965
commit
fabcd468a7
@ -160,7 +160,7 @@ void StartCmder(std::wstring path, bool is_single_mode)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
static char buff[MAX_PATH];
|
static wchar_t buff[MAX_PATH] = { 0 };
|
||||||
GetEnvironmentVariable(L"USER_PROFILE", buff, MAX_PATH);
|
GetEnvironmentVariable(L"USER_PROFILE", buff, MAX_PATH);
|
||||||
SetEnvironmentVariable(L"CMDER_START", buff);
|
SetEnvironmentVariable(L"CMDER_START", buff);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user