summaryrefslogtreecommitdiff
path: root/sal/osl/w32/path_helper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/w32/path_helper.cxx')
-rw-r--r--sal/osl/w32/path_helper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/w32/path_helper.cxx b/sal/osl/w32/path_helper.cxx
index b91c1874c4b7..c58d70dd18e4 100644
--- a/sal/osl/w32/path_helper.cxx
+++ b/sal/osl/w32/path_helper.cxx
@@ -54,7 +54,7 @@ void osl_systemPathEnsureSeparator(/*inout*/ rtl_uString** ppustrPath)
rtl_uString_assign(ppustrPath, path.pData);
}
- OSL_POSTCOND(path.lastIndexOf(BACKSLASH) == (path.getLength() - 1), \
+ OSL_POSTCOND(path.endsWith(BACKSLASH), \
"osl_systemPathEnsureSeparator: Post condition failed");
}