diff options
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/winreg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/winreg.cxx b/configmgr/source/winreg.cxx index c7ba91fb205f..0fd372aa927a 100644 --- a/configmgr/source/winreg.cxx +++ b/configmgr/source/winreg.cxx @@ -211,9 +211,9 @@ void dumpWindowsRegistryKey(HKEY hKey, OUString const & aKeyName, TempFile &aFil sal_Int32 nCloseNode = 0; aFileHandle.writeString("<item oor:path=\""); - for(sal_Int32 nIndex = 0;; ++nIndex) + for(sal_Int32 nIndex = 0;;) { - OUString aNextPathPart = aPathAndNodes.getToken(nIndex, '\\'); + OUString aNextPathPart = aPathAndNodes.getToken(0, '\\', nIndex); if(!aNextPathPart.isEmpty()) { |