diff options
author | Tim Potter <tpot@samba.org> | 2002-05-14 05:27:58 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-05-14 05:27:58 +0000 |
commit | 1df5f8124763955fca102b09ae1fc99323c512a7 (patch) | |
tree | 9f4c4164e97cf9df8bb7c14f6b19247b9dcb0c65 /source3/rpcclient | |
parent | 55cc5f4c08ef1eab61cd3d7f0f134c24276cf94a (diff) | |
download | samba-1df5f8124763955fca102b09ae1fc99323c512a7.tar.gz samba-1df5f8124763955fca102b09ae1fc99323c512a7.tar.bz2 samba-1df5f8124763955fca102b09ae1fc99323c512a7.zip |
The cli_spoolss_setprinterdata() function interface changed slightly.
(This used to be commit 79d7bcf42e568b8fe75818c1d2344bff738afd70)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 9c63ec17c0..2f75db9ef6 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -1647,10 +1647,12 @@ static NTSTATUS cmd_spoolss_setprinterdata(struct cli_state *cli, printf("%s\n", timestring(True)); printf("\tchange_id (before set)\t:[0x%x]\n", info->change_id); - /* Set the printer data */ - result = cli_spoolss_setprinterdata(cli, mem_ctx, &pol, argv[2], argv[3]); + result = cli_spoolss_setprinterdata( + cli, mem_ctx, &pol, argv[2], REG_SZ, argv[3], + strlen(argv[3]) + 1); + if (!W_ERROR_IS_OK(result)) { printf ("Unable to set [%s=%s]!\n", argv[2], argv[3]); goto done; |