mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3-spoolss: Fixed return values of winreg_printer_deleteform1.
Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
012c1feda5
commit
b320fad6e4
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user