Use the correct type and initialise it.

This commit is contained in:
Martin Kemp 2016-01-15 13:01:55 +00:00
parent df7a662965
commit fabcd468a7

View File

@ -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);
} }