From a367b2b5df30b92ccacc4fc15c07c1fd955c7d5b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 4 Dec 2009 17:22:25 +0100 Subject: s3-spoolss: a default printer should have at least a "PrintDriverData" key. Guenther --- source3/printing/nt_printing.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 5f5f344586..553eed6bcf 100644 --- 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: -- cgit