diff options
-rw-r--r-- | configmgr/source/winreg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configmgr/source/winreg.cxx b/configmgr/source/winreg.cxx index ea24c0ebacb4..e9c6e8359510 100644 --- a/configmgr/source/winreg.cxx +++ b/configmgr/source/winreg.cxx @@ -167,7 +167,8 @@ void dumpWindowsRegistryKey(HKEY hKey, OUString const & aKeyName, TempFile &aFil } } // type and external are mutually exclusive - assert(aType.isEmpty() || !bExternal); + if (bExternal) + aType.clear(); sal_Int32 aLastSeparator = aKeyName.lastIndexOf('\\'); OUString aPathAndNodes = aKeyName.copy(0, aLastSeparator); |