summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-07-22 00:48:29 +0000
committerJeremy Allison <jra@samba.org>2000-07-22 00:48:29 +0000
commit78bbcec21b0683aa859aceeb42b106580d48e467 (patch)
treec669688332a66ef6ce497e70952e5d776e26527b /source3/rpc_parse
parent9f5e9acf778f093dd1ee559f040ee1b2a7f9e5ec (diff)
downloadsamba-78bbcec21b0683aa859aceeb42b106580d48e467.tar.gz
samba-78bbcec21b0683aa859aceeb42b106580d48e467.tar.bz2
samba-78bbcec21b0683aa859aceeb42b106580d48e467.zip
Fixed open handle code in printers - 3 functions were always being done
in order - moved them into open_printer_hnd(). Added saving of comment field. Jeremy. (This used to be commit a0ee774fe92e5d0bc84d1d6729e8c538c67e8aba)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_spoolss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index 8574112802..fd120a57ec 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -4236,8 +4236,7 @@ BOOL uni_2_asc_printer_info_2(const SPOOL_PRINTER_INFO_LEVEL_2 *uni,
DEBUG(7,("Converting from UNICODE to ASCII\n"));
time_unix=time(NULL);
- if (*asc==NULL)
- {
+ if (*asc==NULL) {
DEBUGADD(8,("allocating memory\n"));
*asc=(NT_PRINTER_INFO_LEVEL_2 *)malloc(sizeof(NT_PRINTER_INFO_LEVEL_2));
@@ -4268,6 +4267,7 @@ BOOL uni_2_asc_printer_info_2(const SPOOL_PRINTER_INFO_LEVEL_2 *uni,
unistr2_to_ascii(d->sharename, &uni->sharename, sizeof(d->sharename)-1);
unistr2_to_ascii(d->portname, &uni->portname, sizeof(d->portname)-1);
unistr2_to_ascii(d->drivername, &uni->drivername, sizeof(d->drivername)-1);
+ unistr2_to_ascii(d->comment, &uni->comment, sizeof(d->comment)-1);
unistr2_to_ascii(d->location, &uni->location, sizeof(d->location)-1);
unistr2_to_ascii(d->sepfile, &uni->sepfile, sizeof(d->sepfile)-1);
unistr2_to_ascii(d->printprocessor, &uni->printprocessor, sizeof(d->printprocessor)-1);