diff options
Diffstat (limited to 'base/base_paths_win.cc')
-rw-r--r-- | base/base_paths_win.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc index 2b4912e..9b5c150 100644 --- a/base/base_paths_win.cc +++ b/base/base_paths_win.cc @@ -28,7 +28,6 @@ bool PathProviderWin(int key, FilePath* result) { system_buffer[0] = 0; FilePath cur; - std::wstring wstring_path; switch (key) { case base::FILE_EXE: GetModuleFileName(NULL, system_buffer, MAX_PATH); @@ -94,10 +93,7 @@ bool PathProviderWin(int key, FilePath* result) { if (FAILED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, system_buffer))) return false; - wstring_path = system_buffer; - file_util::UpOneDirectory(&wstring_path); - file_util::AppendToPath(&wstring_path, L"LocalLow"); - cur = FilePath(wstring_path); + cur = FilePath(system_buffer).DirName().AppendASCII("LocalLow"); break; case base::DIR_LOCAL_APP_DATA: if (FAILED(SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, |