From 38e2888653638393ba603c6a4ffd2c3dfa5c718c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 12 Feb 2009 22:28:10 +0100 Subject: s3-net: use rpccli_spoolss_SetPrinterDataEx. Guenther --- source3/utils/net_rpc_printer.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source3/utils') 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)); -- cgit