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