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.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 4b1eaeabfeaf..9e19ef94024a 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -537,13 +537,16 @@ Components::Components(
++layer; //TODO: overflow
#endif
#if defined WNT
- } else if (type == "winreg") {
+ } else if (type == "winreg" || type == "winuserreg") {
if (!url.isEmpty()) {
throw css::uno::RuntimeException(
"CONFIGURATION_LAYERS: non-empty \"winreg\" URL");
}
OUString aTempFileURL;
- if (dumpWindowsRegistry(&aTempFileURL)) {
+ WinRegType eType = WinRegType::LOCAL_MACHINE;
+ if (type == "winuserreg")
+ eType = WinRegType::CURRENT_USER;
+ if (dumpWindowsRegistry(&aTempFileURL, eType)) {
parseFileLeniently(&parseXcuFile, aTempFileURL, layer, 0, 0, 0);
osl::File::remove(aTempFileURL);
}