From 3c1c5a409919234a6402299132885a214a518991 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 25 Oct 2017 11:46:51 -0400 Subject: [PATCH] combine homepath and homedrive into single line --- brightray/browser/browser_main_parts.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/brightray/browser/browser_main_parts.cc b/brightray/browser/browser_main_parts.cc index 6b7c47f5c7e2..c5ee689c1002 100644 --- a/brightray/browser/browser_main_parts.cc +++ b/brightray/browser/browser_main_parts.cc @@ -168,9 +168,8 @@ BrowserMainParts::~BrowserMainParts() { void OverrideAppLogsPath() { #if defined(OS_WIN) std::wstring app_name = base::UTF8ToWide(GetApplicationName()); - std::wstring drive = _wgetenv(L"HOMEDRIVE")); - std::wstring path = _wgetenv(L"HOMEPATH")); - std::wstring log_path = drive + "\\" + path + L"\\AppData\\Roaming\\"; + std::wstring home = _wgetenv(L"HOMEDRIVE") + "\\" +_wgetenv(L"HOMEPATH"); + std::wstring log_path = home + L"\\AppData\\Roaming\\"; std::wstring app_log_path = log_path + app_name + L"\\logs"; #else std::string app_name = GetApplicationName();