cut any exe. ext. to find rdbs beneath exe. (#88338#)
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: servicefactory.cxx,v $
|
* $RCSfile: servicefactory.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.22 $
|
* $Revision: 1.23 $
|
||||||
*
|
*
|
||||||
* last change: $Author: kr $ $Date: 2001-07-23 10:10:46 $
|
* last change: $Author: kr $ $Date: 2001-07-25 09:14:51 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -436,15 +436,15 @@ static OUString findBoostrapArgument(const OUString & arg_name, sal_Bool * pFall
|
|||||||
osl_getExecutableFile(&fileName.pData);
|
osl_getExecutableFile(&fileName.pData);
|
||||||
|
|
||||||
// get rid of a potential executable extension
|
// get rid of a potential executable extension
|
||||||
OUString progExt = OUString::createFromAscii(SAL_PRGEXTENSION);
|
OUString progExt = OUString::createFromAscii(".bin");
|
||||||
if(fileName.lastIndexOf(progExt) == (fileName.getLength() - progExt.getLength()))
|
if(fileName.getLength() > progExt.getLength()
|
||||||
fileName = fileName.copy(0, fileName.lastIndexOf(progExt));
|
&& fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt))
|
||||||
|
fileName = fileName.copy(0, fileName.getLength() - progExt.getLength());
|
||||||
|
|
||||||
#ifdef WNT
|
progExt = OUString::createFromAscii(".exe");
|
||||||
progExt = progExt.toAsciiUpperCase();
|
if(fileName.getLength() > progExt.getLength()
|
||||||
if(fileName.lastIndexOf(progExt) == (fileName.getLength() - progExt.getLength()))
|
&& fileName.copy(fileName.getLength() - progExt.getLength()).equalsIgnoreAsciiCase(progExt))
|
||||||
fileName = fileName.copy(0, fileName.lastIndexOf(progExt));
|
fileName = fileName.copy(0, fileName.getLength() - progExt.getLength());
|
||||||
#endif
|
|
||||||
|
|
||||||
result = fileName;
|
result = fileName;
|
||||||
result += OUString(RTL_CONSTASCII_USTRINGPARAM("_"));
|
result += OUString(RTL_CONSTASCII_USTRINGPARAM("_"));
|
||||||
|
Reference in New Issue
Block a user