summaryrefslogtreecommitdiff
path: root/configmgr/source/components.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source/components.cxx')
-rw-r--r--configmgr/source/components.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 7eb87968811a..7fdb43a3497b 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -561,7 +561,8 @@ Components::Components(
OUString aTempFileURL;
if (dumpWindowsRegistry(&aTempFileURL, eType)) {
parseFileLeniently(&parseXcuFile, aTempFileURL, layer, nullptr, nullptr, nullptr);
- osl::File::remove(aTempFileURL);
+ if (!getenv("SAL_CONFIG_WINREG_RETAIN_TMP"))
+ osl::File::remove(aTempFileURL);
}
++layer; //TODO: overflow
#endif