summaryrefslogtreecommitdiffstats
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
commit6025ab201aa34bbf4a7e897149ef6ba370a89703 (patch)
tree811070446cac7365b492631b999bdde5531dfe61
parent8ed7c1ffad2df03c66151c1dfe7477301bd3ebad (diff)
downloadsamba-6025ab201aa34bbf4a7e897149ef6ba370a89703.tar.gz
samba-6025ab201aa34bbf4a7e897149ef6ba370a89703.tar.xz
samba-6025ab201aa34bbf4a7e897149ef6ba370a89703.zip
Sync up startpageprinter with appliance.
-rw-r--r--source/rpc_server/srv_spoolss_nt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/rpc_server/srv_spoolss_nt.c b/source/rpc_server/srv_spoolss_nt.c
index cffd88c3aa1..57521dc1446 100644
--- a/source/rpc_server/srv_spoolss_nt.c
+++ b/source/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;
}
/****************************************************************************