summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-30 16:09:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:26 -0500
commitad1cbc52cccf123c9f97edd4ff30df29e4677499 (patch)
tree85ba905a3f310bc102b741dd37929e447412cf81 /source4/lib/registry/tools
parentcf0f4ec073b694e43daeeddf9aab51cd3e51fd2b (diff)
downloadsamba-ad1cbc52cccf123c9f97edd4ff30df29e4677499.tar.gz
samba-ad1cbc52cccf123c9f97edd4ff30df29e4677499.tar.bz2
samba-ad1cbc52cccf123c9f97edd4ff30df29e4677499.zip
r15361: Export table of predefined registry keys
(This used to be commit 684ef2dae1145388308502942da15e59a8beb425)
Diffstat (limited to 'source4/lib/registry/tools')
-rw-r--r--source4/lib/registry/tools/regtree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c
index 106039361a..b0e1c46d9c 100644
--- a/source4/lib/registry/tools/regtree.c
+++ b/source4/lib/registry/tools/regtree.c
@@ -125,10 +125,10 @@ int main(int argc, char **argv)
if (!h) {
print_tree(0, root, fullpath, no_values);
} else {
- for(i = HKEY_CLASSES_ROOT; i < HKEY_PERFORMANCE_NLSTEXT; i++) {
- error = reg_get_predefined_key(h, i, &root);
+ for(i = 0; reg_predefined_keys[i].handle; i++) {
+ error = reg_get_predefined_key(h, reg_predefined_keys[i].handle, &root);
if (!W_ERROR_IS_OK(error)) {
- fprintf(stderr, "Skipping %s\n", reg_get_predef_name(i));
+ fprintf(stderr, "Skipping %s\n", reg_predefined_keys[i].name);
continue;
}
print_tree(0, root, fullpath, no_values);