summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-08-18 11:11:48 +0000
committerGerald Carter <jerry@samba.org>2002-08-18 11:11:48 +0000
commit50d224a898fa130460bba4009e18fb54b1390168 (patch)
tree230e89d8edbe5a7397a6f6fd93c3c56537c74bee /source3/registry
parentcaf8f949b6876c6c6ebab135a8403ba550e27d6d (diff)
downloadsamba-50d224a898fa130460bba4009e18fb54b1390168.tar.gz
samba-50d224a898fa130460bba4009e18fb54b1390168.tar.bz2
samba-50d224a898fa130460bba4009e18fb54b1390168.zip
fix to allow EnumPrinterKey() to enumerate multiple levels of subkeys.
Works on the top level. Needs more testing for levels > 1. (This used to be commit 32a7083843f2bf9a3f32027189dbb0ff92927cd4)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_frontend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/registry/reg_frontend.c b/source3/registry/reg_frontend.c
index 45c1f24001..994f03cf5a 100644
--- a/source3/registry/reg_frontend.c
+++ b/source3/registry/reg_frontend.c
@@ -332,9 +332,8 @@ REGISTRY_VALUE* regval_ctr_getvalue( REGVAL_CTR *ctr, char *name )
/* search for the value */
for ( i=0; i<ctr->num_values; i++ ) {
- if ( strcmp( ctr->values[i]->valuename, name ) == 0)
+ if ( strequal( ctr->values[i]->valuename, name ) == 0)
return ctr->values[i];
-
}
return NULL;