summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-12 22:28:10 +0100
committerGünther Deschner <gd@samba.org>2009-02-12 22:51:29 +0100
commit38e2888653638393ba603c6a4ffd2c3dfa5c718c (patch)
treefc983c654a06c2dff836f17696a49b62628fdb95 /source3/utils
parent41f17a1fc21ba806a16c7e15061b570abcabb870 (diff)
downloadsamba-38e2888653638393ba603c6a4ffd2c3dfa5c718c.tar.gz
samba-38e2888653638393ba603c6a4ffd2c3dfa5c718c.tar.bz2
samba-38e2888653638393ba603c6a4ffd2c3dfa5c718c.zip
s3-net: use rpccli_spoolss_SetPrinterDataEx.
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_printer.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 41a5e8fded..bb8747ede3 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -865,10 +865,17 @@ static bool net_spoolss_setprinterdataex(struct rpc_pipe_client *pipe_hnd,
REGISTRY_VALUE *value)
{
WERROR result;
+ NTSTATUS status;
/* setprinterdataex call */
- result = rpccli_spoolss_setprinterdataex(pipe_hnd, mem_ctx, hnd,
- keyname, value);
+ status = rpccli_spoolss_SetPrinterDataEx(pipe_hnd, mem_ctx,
+ hnd,
+ keyname,
+ value->valuename,
+ value->type,
+ value->data_p,
+ value->size,
+ &result);
if (!W_ERROR_IS_OK(result)) {
printf("could not set printerdataex: %s\n", win_errstr(result));