summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-23 11:47:19 +0000
committerTim Potter <tpot@samba.org>2002-01-23 11:47:19 +0000
commitf0fe8ff18ad49ed9dee98a8a68cdb58275eb7beb (patch)
tree586a8e421c35cb9bc11bcdb65c05bef5ff1ec218 /source3/rpc_server
parente710c07411f9550ca453a7e8d98cc86d83ea78df (diff)
downloadsamba-f0fe8ff18ad49ed9dee98a8a68cdb58275eb7beb.tar.gz
samba-f0fe8ff18ad49ed9dee98a8a68cdb58275eb7beb.tar.bz2
samba-f0fe8ff18ad49ed9dee98a8a68cdb58275eb7beb.zip
Sync up startpageprinter with appliance.
(This used to be commit 6025ab201aa34bbf4a7e897149ef6ba370a89703)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index cffd88c3aa..57521dc144 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4011,13 +4011,13 @@ WERROR _spoolss_startpageprinter(pipes_struct *p, SPOOL_Q_STARTPAGEPRINTER *q_u,
Printer_entry *Printer = find_printer_index_by_hnd(p, handle);
- if (Printer) {
- Printer->page_started=True;
- return WERR_OK;
+ if (!Printer) {
+ DEBUG(3,("Error in startpageprinter printer handle\n"));
+ return WERR_BADFID;
}
- DEBUG(3,("Error in startpageprinter printer handle\n"));
- return WERR_BADFID;
+ Printer->page_started=True;
+ return WERR_OK;
}
/****************************************************************************