[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sal/osl

Tor Lillqvist tml at kemper.freedesktop.org
Tue Nov 23 11:17:52 PST 2010


 sal/osl/w32/file_dirvol.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3bfb8f8d4bbedbdd5ee2355d54b17a564663dcf0
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Tue Nov 23 21:16:39 2010 +0200

    Expression in OSL_PRECOND was inverted

diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index 282ce24..85d067f 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -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);


More information about the Libreoffice-commits mailing list