appropriately cast pointers to strings
This commit is contained in:
parent
3c1c5a4099
commit
06811cc557
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue