git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41f17a1
)
s3-net: use rpccli_spoolss_SetPrinterDataEx.
author
Günther Deschner
<gd@samba.org>
Thu, 12 Feb 2009 21:28:10 +0000
(22:28 +0100)
committer
Günther Deschner
<gd@samba.org>
Thu, 12 Feb 2009 21:51:29 +0000
(22:51 +0100)
Guenther
source3/utils/net_rpc_printer.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc_printer.c
b/source3/utils/net_rpc_printer.c
index 41a5e8fdeddc059c5d612707684f9682ed56f032..bb8747ede3bfdd99e01acb4d133848c3e40b4f1b 100644
(file)
--- 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));