summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-09-25 04:54:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:58 -0500
commitc32358d001ec1181a40a9f8dd0c7ef3770f3f020 (patch)
treecc7809f40641d403bee3fca0664bd03e5f564ff5
parent2fcdaae84c5ef9c355333f4069be37287f2345ad (diff)
downloadsamba-c32358d001ec1181a40a9f8dd0c7ef3770f3f020.tar.gz
samba-c32358d001ec1181a40a9f8dd0c7ef3770f3f020.tar.bz2
samba-c32358d001ec1181a40a9f8dd0c7ef3770f3f020.zip
r25314: Add HKEY_CURRENT_USER to reg_hive_key().
Guenther (This used to be commit 693b3c26c0643028e861b78068c2bcda0add1105)
-rw-r--r--source3/utils/net_rpc_registry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 459e7f9f85..64aad1f4dd 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -48,6 +48,9 @@ static BOOL reg_hive_key(const char *fullname, uint32 *reg_type,
else if (strnequal(fullname, "HKU", len) ||
strnequal(fullname, "HKEY_USERS", len))
(*reg_type) = HKEY_USERS;
+ else if (strnequal(fullname, "HKCU", len) ||
+ strnequal(fullname, "HKEY_CURRENT_USER", len))
+ (*reg_type) = HKEY_CURRENT_USER;
else if (strnequal(fullname, "HKPD", len) ||
strnequal(fullname, "HKEY_PERFORMANCE_DATA", len))
(*reg_type) = HKEY_PERFORMANCE_DATA;