diff options
author | Andreas Schneider <asn@samba.org> | 2010-04-09 09:26:24 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-23 16:07:04 +0200 |
commit | b320fad6e4c6991f636e3635aeba3d5e1a7a9ed5 (patch) | |
tree | 71202559be061208de0281e215fbde6d069b9b14 | |
parent | 012c1feda5dc4b0841724e914a8ad30e0d2f1e91 (diff) | |
download | samba-b320fad6e4c6991f636e3635aeba3d5e1a7a9ed5.tar.gz samba-b320fad6e4c6991f636e3635aeba3d5e1a7a9ed5.tar.bz2 samba-b320fad6e4c6991f636e3635aeba3d5e1a7a9ed5.zip |
s3-spoolss: Fixed return values of winreg_printer_deleteform1.
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index efe3dd4e97..00a9820962 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -1522,6 +1522,11 @@ WERROR winreg_printer_deleteform1(TALLOC_CTX *mem_ctx, wvalue, &result); if (!NT_STATUS_IS_OK(status)) { + /* If the value doesn't exist, return WERR_INVALID_FORM_NAME */ + if (W_ERROR_EQUAL(result, WERR_BADFILE)) { + result = WERR_INVALID_FORM_NAME; + goto done; + } DEBUG(0, ("winreg_printer_delteform1: Could not delete value %s: %s\n", wvalue.name, nt_errstr(status))); if (!W_ERROR_IS_OK(result)) { |