summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/file_util_win.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index b6a741b..2181516 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -59,9 +59,10 @@ bool DevicePathToDriveLetterPath(const FilePath& device_path,
while(*drive_map_ptr++);
}
- // No drive matched. The path does not start with a device junction.
- *drive_letter_path = device_path;
- return true;
+ // No drive matched. The path does not start with a device junction
+ // that is mounted as a drive letter. This means there is no drive
+ // letter path to the volume that holds |device_path|, so fail.
+ return false;
}
} // namespace