git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc83b9
)
s3-spoolss: a default printer should have at least a "PrintDriverData" key.
author
Günther Deschner
<gd@samba.org>
Fri, 4 Dec 2009 16:22:25 +0000
(17:22 +0100)
committer
Günther Deschner
<gd@samba.org>
Mon, 7 Dec 2009 13:41:44 +0000
(14:41 +0100)
Guenther
source3/printing/nt_printing.c
patch
|
blob
|
history
diff --git
a/source3/printing/nt_printing.c
b/source3/printing/nt_printing.c
index 5f5f3445861abfc0c2d4190d2894f12f59b6a2ed..553eed6bcfc726037df875f26730ac20a9472144 100644
(file)
--- a/
source3/printing/nt_printing.c
+++ b/
source3/printing/nt_printing.c
@@
-3833,6
+3833,13
@@
static WERROR get_a_printer_2_default(NT_PRINTER_INFO_LEVEL_2 *info,
goto fail;
}
+ info->data = TALLOC_ZERO_P(info, NT_PRINTER_DATA);
+ if (!info->data) {
+ goto fail;
+ }
+
+ add_new_printer_key(info->data, SPOOL_PRINTERDATA_KEY);
+
return WERR_OK;
fail: