summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authormharanczyk@opera.com <mharanczyk@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-07 09:50:45 +0000
committermharanczyk@opera.com <mharanczyk@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-07 09:50:45 +0000
commit3fbf3f050bb62ba195a94c4dcf468a25e23ed76d (patch)
tree64d07ff040065e57ee4f8c85ea471d522b647a6c /sandbox
parenta5f97a128da7d13f6ce9800516ff573ef9a4c0aa (diff)
downloadchromium_src-3fbf3f050bb62ba195a94c4dcf468a25e23ed76d.zip
chromium_src-3fbf3f050bb62ba195a94c4dcf468a25e23ed76d.tar.gz
chromium_src-3fbf3f050bb62ba195a94c4dcf468a25e23ed76d.tar.bz2
Skip root dir when iterating over path in reparse points search.
It turns out that ::GetFileAttributes(...) Windows API for paths in form of "<drive>:" returns attribute of binary file work dir instead of "<drive>:\" dir. BUG=340625 Review URL: https://codereview.chromium.org/150093006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/win/src/win_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/win/src/win_utils.cc b/sandbox/win/src/win_utils.cc
index 53a12a4..d24db9c 100644
--- a/sandbox/win/src/win_utils.cc
+++ b/sandbox/win/src/win_utils.cc
@@ -114,7 +114,7 @@ DWORD IsReparsePoint(const base::string16& full_path, bool* result) {
}
last_pos = path.rfind(L'\\');
- } while (last_pos != base::string16::npos);
+ } while (last_pos > 2); // Skip root dir.
*result = false;
return ERROR_SUCCESS;