r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead of
authorMichael Adam <obnox@samba.org>
Tue, 24 Apr 2007 00:12:28 +0000 (00:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:39 +0000 (12:19 -0500)
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)

source3/registry/reg_api.c

index 905793253849ac43a7abb9ee761bbad9753841f4..4bcc6d73035202d68d3802597b10e70ba172f267 100644 (file)
@@ -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,