diff options
Diffstat (limited to 'comphelper/source/misc/regpathhelper.cxx')
-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 ) { |