summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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,