summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 90579325384..4bcc6d73035 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,