From: Günther Deschner Date: Wed, 18 Mar 2009 15:10:52 +0000 (+0100) Subject: s3-rpcclient: fix spoolss notify test after spoolss_Field changes. X-Git-Tag: samba-3.4.0pre1~331 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=16aa10bda49c8f1d884d93037daccbcc70d84ef9;p=samba.git s3-rpcclient: fix spoolss notify test after spoolss_Field changes. Guenther (cherry picked from commit 8b730ca1d8431d8d1eddee9523c64e60e06bc59c) (cherry picked from commit 0a876be5de06d0ca627bfdfe8769c08c5876f436) --- diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index ed877d0e6b8..3dc88af7f15 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -2700,21 +2700,21 @@ static WERROR cmd_spoolss_rffpcnex(struct rpc_pipe_client *cli, option.types[0].type = PRINTER_NOTIFY_TYPE; option.types[0].count = 1; - option.types[0].fields = talloc_array(mem_ctx, enum spoolss_Field, 1); + option.types[0].fields = talloc_array(mem_ctx, union spoolss_Field, 1); if (option.types[0].fields == NULL) { result = WERR_NOMEM; goto done; } - option.types[0].fields[0] = PRINTER_NOTIFY_SERVER_NAME; + option.types[0].fields[0].field = PRINTER_NOTIFY_SERVER_NAME; option.types[1].type = JOB_NOTIFY_TYPE; option.types[1].count = 1; - option.types[1].fields = talloc_array(mem_ctx, enum spoolss_Field, 1); + option.types[1].fields = talloc_array(mem_ctx, union spoolss_Field, 1); if (option.types[1].fields == NULL) { result = WERR_NOMEM; goto done; } - option.types[1].fields[0] = JOB_NOTIFY_PRINTER_NAME; + option.types[1].fields[0].field = JOB_NOTIFY_PRINTER_NAME; clientname = talloc_asprintf(mem_ctx, "\\\\%s", global_myname()); if (!clientname) {