summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-07-29 18:10:59 +0000
committerGerald Carter <jerry@samba.org>2002-07-29 18:10:59 +0000
commit9f7e67c6f9eec4f21d5afbe323dc1c664ff52b54 (patch)
tree9f27575c777bc3f53f96f491f2b024b57e242684 /source3/rpc_server/srv_spoolss_nt.c
parentd6a3fd8ad4f01b20eda7eff91cfb336b183c08ac (diff)
downloadsamba-9f7e67c6f9eec4f21d5afbe323dc1c664ff52b54.tar.gz
samba-9f7e67c6f9eec4f21d5afbe323dc1c664ff52b54.tar.bz2
samba-9f7e67c6f9eec4f21d5afbe323dc1c664ff52b54.zip
couple of minor formatting fixes to help me see better.
(This used to be commit 26027ee42ae378eef59a8ae46f5e4e44bf2d4af0)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 4691cbee01..20a586a6fb 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6813,7 +6813,6 @@ WERROR _spoolss_addprinterex( pipes_struct *p, SPOOL_Q_ADDPRINTEREX *q_u, SPOOL_
WERROR _spoolss_addprinterdriver(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVER *q_u, SPOOL_R_ADDPRINTERDRIVER *r_u)
{
-/* UNISTR2 *server_name = &q_u->server_name; - notused. */
uint32 level = q_u->level;
SPOOL_PRINTER_DRIVER_INFO_LEVEL *info = &q_u->info;
WERROR err = WERR_OK;
@@ -6891,7 +6890,9 @@ WERROR _spoolss_addprinterdriver(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVER *q_u,
version = driver.info_6->version;
else
version = -1;
- switch (version) {
+
+ switch (version)
+ {
/*
* 9x printer driver - never delete init data
*/
@@ -6962,12 +6963,14 @@ WERROR _spoolss_addprinterdriverex(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVEREX *
return WERR_ACCESS_DENIED;
/* just pass the information off to _spoolss_addprinterdriver() */
+
ZERO_STRUCT(q_u_local);
ZERO_STRUCT(r_u_local);
q_u_local.server_name_ptr = q_u->server_name_ptr;
copy_unistr2(&q_u_local.server_name, &q_u->server_name);
q_u_local.level = q_u->level;
+
memcpy( &q_u_local.info, &q_u->info, sizeof(SPOOL_PRINTER_DRIVER_INFO_LEVEL) );
return _spoolss_addprinterdriver( p, &q_u_local, &r_u_local );