summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-17 00:32:28 +0100
committerGünther Deschner <gd@samba.org>2009-02-17 00:32:28 +0100
commit2fde3d2bc4c7fcfb881f29f3de1bf6fe52f526f8 (patch)
tree403198bc9b55a45bf93f32976511882bc928edcb /source4/torture/rpc
parentd92edb3aa3efacdbd6f363807a6266cae263556a (diff)
downloadsamba-2fde3d2bc4c7fcfb881f29f3de1bf6fe52f526f8.tar.gz
samba-2fde3d2bc4c7fcfb881f29f3de1bf6fe52f526f8.tar.bz2
samba-2fde3d2bc4c7fcfb881f29f3de1bf6fe52f526f8.zip
s4-smbtorture: fix spoolss notify test.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss_notify.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source4/torture/rpc/spoolss_notify.c b/source4/torture/rpc/spoolss_notify.c
index f9ff31a797..048f255ffc 100644
--- a/source4/torture/rpc/spoolss_notify.c
+++ b/source4/torture/rpc/spoolss_notify.c
@@ -191,7 +191,7 @@ static bool test_RFFPCNEx(struct torture_context *tctx,
NTSTATUS status;
struct dcesrv_context *dce_ctx;
const char *endpoints[] = { "spoolss", NULL };
- struct spoolss_NotifyOptionsContainer t1;
+ struct spoolss_NotifyOption t1;
struct spoolss_ClosePrinter cp;
struct policy_handle handle;
@@ -245,24 +245,24 @@ static bool test_RFFPCNEx(struct torture_context *tctx,
"unable to initialize DCE/RPC server");
r.in.flags = 0;
- r.in.str = talloc_asprintf(tctx, "\\\\%s", address);
+ r.in.local_machine = talloc_asprintf(tctx, "\\\\%s", address);
r.in.options = 0;
r.in.printer_local = 123;
t1.version = 2;
t1.flags = 0;
t1.count = 2;
- t1.options = talloc_zero_array(tctx, struct spoolss_NotifyOptionsArray, 2);
- t1.options[0].type = SPOOLSS_NOTIFY_PRINTER;
- t1.options[0].count = 1;
- t1.options[0].fields = talloc_array(t1.options, enum spoolss_Field, 1);
- t1.options[0].fields[0] = SPOOLSS_FIELD_SERVER_NAME;
-
- t1.options[1].type = SPOOLSS_NOTIFY_JOB;
- t1.options[1].count = 1;
- t1.options[1].fields = talloc_array(t1.options, enum spoolss_Field, 1);
- t1.options[1].fields[0] = SPOOLSS_FIELD_PRINTER_NAME;
-
- r.in.t1 = &t1;
+ t1.types = talloc_zero_array(tctx, struct spoolss_NotifyOptionType, 2);
+ t1.types[0].type = SPOOLSS_NOTIFY_PRINTER;
+ t1.types[0].count = 1;
+ t1.types[0].fields = talloc_array(t1.types, enum spoolss_Field, 1);
+ t1.types[0].fields[0] = SPOOLSS_FIELD_SERVER_NAME;
+
+ t1.types[1].type = SPOOLSS_NOTIFY_JOB;
+ t1.types[1].count = 1;
+ t1.types[1].fields = talloc_array(t1.types, enum spoolss_Field, 1);
+ t1.types[1].fields[0] = SPOOLSS_FIELD_PRINTER_NAME;
+
+ r.in.notify_options = &t1;
r.in.handle = &handle;
status = dcerpc_spoolss_RemoteFindFirstPrinterChangeNotifyEx(p, tctx, &r);