appropriately cast pointers to strings

This commit is contained in:
Shelley Vohr 2017-10-25 12:02:50 -04:00
parent 3c1c5a4099
commit 06811cc557
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -168,8 +168,9 @@ BrowserMainParts::~BrowserMainParts() {
void OverrideAppLogsPath() {
#if defined(OS_WIN)
std::wstring app_name = base::UTF8ToWide(GetApplicationName());
std::wstring home = _wgetenv(L"HOMEDRIVE") + "\\" +_wgetenv(L"HOMEPATH");
std::wstring log_path = home + L"\\AppData\\Roaming\\";
std::wstring home = std::wstring(_wgetenv(L"HOMEDRIVE"));
std::wstring drive = std::wstring(_wgetenv(L"HOMEPATH"));
std::wstring log_path = home + L"\\" + drive + L"\\AppData\\Roaming\\";
std::wstring app_log_path = log_path + app_name + L"\\logs";
#else
std::string app_name = GetApplicationName();