summaryrefslogtreecommitdiffstats
path: root/sandbox/win/src/win_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/win/src/win_utils.cc')
-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 3717a97..ef4d803 100644
--- a/sandbox/win/src/win_utils.cc
+++ b/sandbox/win/src/win_utils.cc
@@ -226,7 +226,7 @@ bool SameObject(HANDLE handle, const wchar_t* full_path) {
// This may end with a backslash.
const wchar_t kBackslash = '\\';
- if (path[path.length() - 1] == kBackslash)
+ if (path.back() == kBackslash)
path = path.substr(0, path.length() - 1);
// Perfect match (case-insesitive check).