summaryrefslogtreecommitdiff
path: root/source4/rpc_server
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/rpc_server
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/rpc_server')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index 7eba428aef..681e3b918f 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -411,15 +411,7 @@ static WERROR dcesrv_winreg_QueryValue(struct dcesrv_call_state *dce_call,
&value_type, &value_data);
if (!W_ERROR_IS_OK(result)) {
- /*
- * Windows expects WERR_BADFILE when a particular value
- * is not found. If we receive WERR_NOT_FOUND from the lower
- * layer calls, translate it here to return what is expected.
- */
- if (W_ERROR_EQUAL(result, WERR_NOT_FOUND))
- return WERR_BADFILE;
- else
- return result;
+ return result;
}
/* Just asking for the size of the buffer */