mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
Fix a small bug.
(This used to be commit 16e0a3cc0834b691fcfec75d20dfdd5fa4d0afa6)
This commit is contained in:
parent
f31ec23cf9
commit
58ea9ea449
@ -501,7 +501,7 @@ int nt_key_iterator(REGF *regf, REG_KEY *key_tree, int bf, char *path,
|
||||
|
||||
if (key_tree->values &&
|
||||
!nt_val_list_iterator(regf, key_tree->values, bf, new_path,
|
||||
(key_tree->values?(key_tree->values->val_count):0),
|
||||
(key_tree->values!=NULL),
|
||||
val_print)) {
|
||||
|
||||
free(new_path);
|
||||
@ -1298,7 +1298,7 @@ int print_key(char *path, char *name, char *class_name, int root,
|
||||
int print_val(char *path, char *val_name, int val_type, int data_len,
|
||||
void *data_blk, int terminal, int first, int last)
|
||||
{
|
||||
if (terminal && first)
|
||||
if (!terminal && first)
|
||||
fprintf(stdout, "%s\n", path);
|
||||
fprintf(stdout, " %s : %s : \n", (val_name?val_name:"<No Name>"),
|
||||
val_to_str(val_type, reg_type_names));
|
||||
|
Loading…
x
Reference in New Issue
Block a user