summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-13 17:18:32 +0100
committerGünther Deschner <gd@samba.org>2009-02-14 01:21:21 +0100
commit886c028e44a31c52f6595343f55236e27a8d0b40 (patch)
tree3cc3aed07a4d6e548b939d4ee6b5bb88424fe66d
parent935a551d25562c6459e6f6d7788539fc7849edfe (diff)
downloadsamba-886c028e44a31c52f6595343f55236e27a8d0b40.tar.gz
samba-886c028e44a31c52f6595343f55236e27a8d0b40.tar.bz2
samba-886c028e44a31c52f6595343f55236e27a8d0b40.zip
s4-smbtorture: fix test_PausePrinter and test_ResumePrinter.
Guenther
-rw-r--r--source4/torture/rpc/spoolss.c32
1 files changed, 24 insertions, 8 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 3e72bdeb34..480f33e1a1 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -1087,12 +1087,20 @@ static bool test_PausePrinter(struct torture_context *tctx,
{
NTSTATUS status;
struct spoolss_SetPrinter r;
+ struct spoolss_SetPrinterInfoCtr info_ctr;
+ struct spoolss_DevmodeContainer devmode_ctr;
+ struct sec_desc_buf secdesc_ctr;
+
+ info_ctr.level = 0;
+ info_ctr.info.info0 = NULL;
+
+ ZERO_STRUCT(devmode_ctr);
+ ZERO_STRUCT(secdesc_ctr);
r.in.handle = handle;
- r.in.level = 0;
- r.in.info.info1 = NULL;
- r.in.devmode_ctr.devmode= NULL;
- r.in.secdesc_ctr.sd = NULL;
+ r.in.info_ctr = &info_ctr;
+ r.in.devmode_ctr = &devmode_ctr;
+ r.in.secdesc_ctr = &secdesc_ctr;
r.in.command = SPOOLSS_PRINTER_CONTROL_PAUSE;
torture_comment(tctx, "Testing SetPrinter: SPOOLSS_PRINTER_CONTROL_PAUSE\n");
@@ -1112,12 +1120,20 @@ static bool test_ResumePrinter(struct torture_context *tctx,
{
NTSTATUS status;
struct spoolss_SetPrinter r;
+ struct spoolss_SetPrinterInfoCtr info_ctr;
+ struct spoolss_DevmodeContainer devmode_ctr;
+ struct sec_desc_buf secdesc_ctr;
+
+ info_ctr.level = 0;
+ info_ctr.info.info0 = NULL;
+
+ ZERO_STRUCT(devmode_ctr);
+ ZERO_STRUCT(secdesc_ctr);
r.in.handle = handle;
- r.in.level = 0;
- r.in.info.info1 = NULL;
- r.in.devmode_ctr.devmode= NULL;
- r.in.secdesc_ctr.sd = NULL;
+ r.in.info_ctr = &info_ctr;
+ r.in.devmode_ctr = &devmode_ctr;
+ r.in.secdesc_ctr = &secdesc_ctr;
r.in.command = SPOOLSS_PRINTER_CONTROL_RESUME;
torture_comment(tctx, "Testing SetPrinter: SPOOLSS_PRINTER_CONTROL_RESUME\n");