From: Michael Adam Date: Tue, 24 Apr 2007 00:12:28 +0000 (+0000) Subject: r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead of X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~613 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e09e0d642d98165257c7c43ca2634a430772dcee;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/registry/reg_api.c b/source/registry/reg_api.c index 90579325384..4bcc6d73035 100644 --- a/source/registry/reg_api.c +++ b/source/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,