convert to wstring for windows
This commit is contained in:
parent
e7bb553d3b
commit
96f1a25bbd
1 changed files with 3 additions and 3 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue