summaryrefslogtreecommitdiffstats
path: root/chrome/common/win_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/win_util.cc')
-rw-r--r--chrome/common/win_util.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/win_util.cc b/chrome/common/win_util.cc
index 4cfec85..48f29df 100644
--- a/chrome/common/win_util.cc
+++ b/chrome/common/win_util.cc
@@ -161,6 +161,11 @@ void ShowItemInFolder(const std::wstring& full_path) {
if (dir == L"" || !file_util::PathExists(full_path))
return;
+ // ParseDisplayName will fail if the directory is "C:", it must be "C:\\".
+ FilePath dir_path(dir);
+ file_util::EnsureEndsWithSeparator(&dir_path);
+ dir = dir_path.value();
+
typedef HRESULT (WINAPI *SHOpenFolderAndSelectItemsFuncPtr)(
PCIDLIST_ABSOLUTE pidl_Folder,
UINT cidl,