summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-08-30 00:45:59 +0000
committerJeremy Allison <jra@samba.org>2000-08-30 00:45:59 +0000
commitd407579b94ee2647d1e51c536534024e5c4c51ad (patch)
treec4a3ae28143ea3bfc4fe11022455b3d85f94c321 /source3/smbd
parent3b33053b886b88bb7546f77dcdb038fcdc501c6c (diff)
downloadsamba-d407579b94ee2647d1e51c536534024e5c4c51ad.tar.gz
samba-d407579b94ee2647d1e51c536534024e5c4c51ad.tar.bz2
samba-d407579b94ee2647d1e51c536534024e5c4c51ad.zip
Implemented AbortPrinter() from Gerald's Win32 test code. Just purge all
possible printjobs from that printer (I think this is correct). Added error code returns for print_queue_XXX() functions. Jeremy. (This used to be commit 6d081a9017f87f59b7189ba507e211db01c40af5)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 170bb9e6bd..82ab5f4d3c 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1940,13 +1940,13 @@ static BOOL api_WPrintQueuePurge(connection_struct *conn,uint16 vuid, char *para
switch (function) {
case 74: /* Pause queue */
- if (print_queue_pause(NULL, snum)) errcode = NERR_Success;
+ if (print_queue_pause(NULL, snum, &errcode)) errcode = NERR_Success;
break;
case 75: /* Resume queue */
- if (print_queue_resume(NULL, snum)) errcode = NERR_Success;
+ if (print_queue_resume(NULL, snum, &errcode)) errcode = NERR_Success;
break;
case 103: /* Purge */
- if (print_queue_purge(NULL, snum)) errcode = NERR_Success;
+ if (print_queue_purge(NULL, snum, &errcode)) errcode = NERR_Success;
break;
}