git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c620832
)
r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead of
author
Michael Adam
<obnox@samba.org>
Tue, 24 Apr 2007 00:12:28 +0000
(
00:12
+0000)
committer
Gerald (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
patch
|
blob
|
history
diff --git
a/source3/registry/reg_api.c
b/source3/registry/reg_api.c
index 905793253849ac43a7abb9ee761bbad9753841f4..4bcc6d73035202d68d3802597b10e70ba172f267 100644
(file)
--- 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,