Expression in OSL_PRECOND was inverted
This commit is contained in:
parent
1604ae053c
commit
7c0779b5ba
1 changed files with 1 additions and 1 deletions
|
@ -691,7 +691,7 @@ static int path_make_parent(sal_Unicode* path)
|
|||
If there are no more parents 0 will be returned,
|
||||
e.g. 'c:\' or '\\Share' have no more parents */
|
||||
|
||||
OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) != -1, "Path must not contain slashes");
|
||||
OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) == -1, "Path must not contain slashes");
|
||||
OSL_PRECOND(has_path_parent(path), "Path must have a parent");
|
||||
|
||||
sal_Unicode* pos_last_backslash = path + rtl_ustr_lastIndexOfChar(path, BACKSLASH);
|
||||
|
|
Loading…
Reference in a new issue