Browse Source

convert to wstring for windows

Shelley Vohr 7 years ago
parent
commit
96f1a25bbd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      brightray/browser/browser_main_parts.cc

+ 3 - 3
brightray/browser/browser_main_parts.cc

@@ -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"));