summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-04-24 00:12:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:39 -0500
commitb93f78025db8fe0e38a9a9bdac27c53309e3ec4a (patch)
treecf9c7f873a02e3fc41eb83e32e237c15f79b2b41
parentc620832983d99205576b7885568221a1a576febe (diff)
downloadsamba-b93f78025db8fe0e38a9a9bdac27c53309e3ec4a.tar.gz
samba-b93f78025db8fe0e38a9a9bdac27c53309e3ec4a.tar.bz2
samba-b93f78025db8fe0e38a9a9bdac27c53309e3ec4a.zip
r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead of
WERR_BAD_FILE when all items have been successfully enumerated. Besides seeming the reasonable code to return, this is what I have seen from w2k3, w2k, wxp. (This used to be commit e09e0d642d98165257c7c43ca2634a430772dcee)
-rw-r--r--source3/registry/reg_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 9057932538..4bcc6d7303 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -168,7 +168,7 @@ WERROR reg_enumvalue(TALLOC_CTX *mem_ctx, struct registry_key *key,
}
if (idx >= key->values->num_values) {
- return WERR_BADFILE;
+ return WERR_NO_MORE_ITEMS;
}
err = registry_pull_value(mem_ctx, &val,