Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Unified Diff: sandbox/win/src/win_utils.cc

Issue 150093006: Include trailing '\' when iterating over path in reparse points search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip root dir when testing for reparse points in path. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/win_utils.cc
diff --git a/sandbox/win/src/win_utils.cc b/sandbox/win/src/win_utils.cc
index 53a12a4f292d4da12435fd20ad3858f57feaddf5..1637a193407a0ecf95b56661c6cbf16af771f4f6 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
rvargas (doing something else) 2014/02/06 18:12:07 Tiny nit: period at the end.
*result = false;
return ERROR_SUCCESS;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698