diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/lanman.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 979e5b57a4..1672c518ac 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -2869,23 +2869,20 @@ static bool api_WPrintQueueCtrl(connection_struct *conn,uint16 vuid, switch (function) { case 74: /* Pause queue */ - if (print_queue_pause(conn->server_info, snum, &werr)) { - errcode = NERR_Success; - } + werr = print_queue_pause(conn->server_info, snum); break; case 75: /* Resume queue */ - if (print_queue_resume(conn->server_info, snum, &werr)) { - errcode = NERR_Success; - } + werr = print_queue_resume(conn->server_info, snum); break; case 103: /* Purge */ - if (print_queue_purge(conn->server_info, snum, &werr)) { - errcode = NERR_Success; - } + werr = print_queue_purge(conn->server_info, snum); + break; + default: + werr = WERR_NOT_SUPPORTED; break; } - if (!W_ERROR_IS_OK(werr)) errcode = W_ERROR_V(werr); + errcode = W_ERROR_V(werr); out: SSVAL(*rparam,0,errcode); |