summaryrefslogtreecommitdiff
path: root/source4/lib/registry/regf.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-18 02:45:00 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-18 03:41:59 +0100
commit85d60d2d091a2eb6bd4c73c87c94b10ee93167ee (patch)
treeb0c1498f80bffbc7a7e0271f15a9847405ce2654 /source4/lib/registry/regf.c
parent4d8a60f617f941ff6481bcfbac73d7ed69e43daa (diff)
downloadsamba-85d60d2d091a2eb6bd4c73c87c94b10ee93167ee.tar.gz
samba-85d60d2d091a2eb6bd4c73c87c94b10ee93167ee.tar.bz2
samba-85d60d2d091a2eb6bd4c73c87c94b10ee93167ee.zip
registry: Improve error codes and update tests.
Rather than map the error returned by the registry to the correct error, return the correct error in the first place. Also deal with the fact that the right error code is now returned in a couple of places. (This used to be commit 1e31fcb8a097810a97e2d4bb1f243f1b34cc2415)
Diffstat (limited to 'source4/lib/registry/regf.c')
-rw-r--r--source4/lib/registry/regf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c
index 9b126cc808..475ec7bb5d 100644
--- a/source4/lib/registry/regf.c
+++ b/source4/lib/registry/regf.c
@@ -575,7 +575,7 @@ static WERROR regf_get_value_by_name(TALLOC_CTX *mem_ctx,
}
if (W_ERROR_EQUAL(error, WERR_NO_MORE_ITEMS))
- return WERR_NOT_FOUND;
+ return WERR_BADFILE;
return error;
}