diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2000-10-09 15:27:18 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2000-10-09 15:27:18 +0000 |
commit | ce5594dd56224a11a99eabed16b0f324b9db6894 (patch) | |
tree | 16b3a0236bd04b669312d387328ef5ae6963bf8e /comphelper/source | |
parent | ebca868f9491f72978bd83ddd088f639f4663229 (diff) |
#79287# check commandline args to find out if portal
Diffstat (limited to 'comphelper/source')
-rw-r--r-- | comphelper/source/misc/regpathhelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/misc/regpathhelper.cxx b/comphelper/source/misc/regpathhelper.cxx index 8ca3e7e4585f..f54eef2eab65 100644 --- a/comphelper/source/misc/regpathhelper.cxx +++ b/comphelper/source/misc/regpathhelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: regpathhelper.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: fs $ $Date: 2000-09-29 11:28:15 $ + * last change: $Author: jsc $ $Date: 2000-10-09 16:27:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -115,9 +115,9 @@ static OUString getDefaultLocalRegistry() sal_uInt32 nArgs = startInfo.getCommandArgCount(); sal_Bool bIsPortalUser = sal_False, bFindProfile = sal_False; OUString sArg; - while( nArgs > 0 ) + while( nArgs >= 0 ) { - if ( !startInfo.getCommandArg(nArgs--, sArg) ) + if ( !startInfo.getCommandArg(--nArgs, sArg) ) { if ( sArg.indexOf(OUString::createFromAscii("-userid")) == 0 ) { |