From 275987363297bf2a16822e0fe3aff97cb3d05d63 Mon Sep 17 00:00:00 2001 From: Kay Ramme Date: Fri, 23 Nov 2001 09:52:52 +0000 Subject: [PATCH] SAL_PATHDELIMITER is for system paths and not for file urls (#95123#) --- cppuhelper/source/bootstrap.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cppuhelper/source/bootstrap.cxx b/cppuhelper/source/bootstrap.cxx index 724cc163c89b..fe82ad078643 100644 --- a/cppuhelper/source/bootstrap.cxx +++ b/cppuhelper/source/bootstrap.cxx @@ -2,9 +2,9 @@ * * $RCSfile: bootstrap.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: kr $ $Date: 2001-11-14 10:32:41 $ + * last change: $Author: kr $ $Date: 2001-11-23 10:52:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -525,7 +525,7 @@ Reference< XComponentContext > SAL_CALL defaultBootstrap_InitialComponentContext OUString libraryFileUrl; Module::getUrlFromAddress((void *)(Reference (*)())defaultBootstrap_InitialComponentContext, libraryFileUrl); - OUString iniName = libraryFileUrl.copy(0, libraryFileUrl.lastIndexOf((sal_Unicode)SAL_PATHDELIMITER) + 1); // cut the library extension + OUString iniName = libraryFileUrl.copy(0, libraryFileUrl.lastIndexOf((sal_Unicode)'/') + 1); // cut the library extension iniName += OUString(RTL_CONSTASCII_USTRINGPARAM(SAL_CONFIGFILE("uno"))); // add the rc file extension return defaultBootstrap_InitialComponentContext(iniName);