summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-12-04 17:22:25 +0100
committerGünther Deschner <gd@samba.org>2009-12-07 14:41:44 +0100
commita367b2b5df30b92ccacc4fc15c07c1fd955c7d5b (patch)
tree242f86598e275a39a03cd7d86b69ac52dbb3970c
parent1bc83b984d6f074a5a7c7d3e7f6de4a2278fee4c (diff)
downloadsamba-a367b2b5df30b92ccacc4fc15c07c1fd955c7d5b.tar.gz
samba-a367b2b5df30b92ccacc4fc15c07c1fd955c7d5b.tar.bz2
samba-a367b2b5df30b92ccacc4fc15c07c1fd955c7d5b.zip
s3-spoolss: a default printer should have at least a "PrintDriverData" key.
Guenther
-rw-r--r--source3/printing/nt_printing.c7
1 files changed, 7 insertions, 0 deletions
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: