summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-26 01:20:38 +0000
committerJeremy Allison <jra@samba.org>2002-01-26 01:20:38 +0000
commit5b0dca4998837231b931aa9a4a546079454d780e (patch)
tree61b33a2b19a85c67b399162b5f347ed935a94dce /source3/rpc_server
parent2452515a1603dbcea03d6cbb805413c5ccb15ac7 (diff)
downloadsamba-5b0dca4998837231b931aa9a4a546079454d780e.tar.gz
samba-5b0dca4998837231b931aa9a4a546079454d780e.tar.bz2
samba-5b0dca4998837231b931aa9a4a546079454d780e.zip
Fixed ADDPRINTEREX to take a devmode and a security descriptor...
Jeremy. (This used to be commit 27f65b3aad13ecd33bbb84048d70e3dde212f278)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 8a13ebe19e..c96612eef2 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -5843,7 +5843,7 @@ WERROR _spoolss_enumports( pipes_struct *p, SPOOL_Q_ENUMPORTS *q_u, SPOOL_R_ENUM
****************************************************************************/
static WERROR spoolss_addprinterex_level_2( pipes_struct *p, const UNISTR2 *uni_srv_name,
const SPOOL_PRINTER_INFO_LEVEL *info,
- uint32 unk0, uint32 unk1, uint32 unk2, uint32 unk3,
+ DEVICEMODE *devmode, SEC_DESC_BUF *sec_desc_buf,
uint32 user_switch, const SPOOL_USER_CTR *user,
POLICY_HND *handle)
{
@@ -5939,10 +5939,8 @@ WERROR _spoolss_addprinterex( pipes_struct *p, SPOOL_Q_ADDPRINTEREX *q_u, SPOOL_
UNISTR2 *uni_srv_name = &q_u->server_name;
uint32 level = q_u->level;
SPOOL_PRINTER_INFO_LEVEL *info = &q_u->info;
- uint32 unk0 = q_u->unk0;
- uint32 unk1 = q_u->unk1;
- uint32 unk2 = q_u->unk2;
- uint32 unk3 = q_u->unk3;
+ DEVICEMODE *devmode = q_u->devmode_ctr.devmode;
+ SEC_DESC_BUF *sdb = q_u->secdesc_ctr;
uint32 user_switch = q_u->user_switch;
SPOOL_USER_CTR *user = &q_u->user_ctr;
POLICY_HND *handle = &r_u->handle;
@@ -5954,7 +5952,7 @@ WERROR _spoolss_addprinterex( pipes_struct *p, SPOOL_Q_ADDPRINTEREX *q_u, SPOOL_
return WERR_UNKNOWN_LEVEL;
case 2:
return spoolss_addprinterex_level_2(p, uni_srv_name, info,
- unk0, unk1, unk2, unk3,
+ devmode, sdb,
user_switch, user, handle);
default:
return WERR_UNKNOWN_LEVEL;