convert to wstring for windows

This commit is contained in:
Shelley Vohr 2017-09-29 10:29:45 -04:00
parent e7bb553d3b
commit 96f1a25bbd
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -167,9 +167,9 @@ BrowserMainParts::~BrowserMainParts() {
#if defined(OS_WIN) || defined(OS_LINUX)
void OverrideAppLogsPath() {
#if defined(OS_WIN)
std::string app_name = GetApplicationName();
std::string log_path = "%HOMEDRIVE%%HOMEPATH%\\AppData\\Roaming\\";
std::string app_log_path = log_path + app_name + "\\logs";
std::wstring app_name = base::UTF8ToWide(GetApplicationName());
std::wstring log_path = L"%HOMEDRIVE%%HOMEPATH%\\AppData\\Roaming\\";
std::wstring app_log_path = log_path + app_name + L"\\logs";
#else
std::string app_name = GetApplicationName();
std::string home_path = std::string(getenv("HOME"));