From 9d975fa6bcf6e425cce890328be4f67534b29ba1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 27 Feb 2002 22:40:12 +0000 Subject: Fix from JohnR - Fixed SetPrinterData(magic key) to support zero length DEVMODE as is the case with the Okidata Okipage 20 PCLXL Advanced printer driver. (This used to be commit 51c3d3536335a72aa264e3f4d62515f5c0b6d192) --- source3/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/printing/nt_printing.c') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 97f8ad360c..72e4c47f28 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3041,7 +3041,7 @@ static WERROR save_driver_init_2(NT_PRINTER_INFO_LEVEL *printer, NT_PRINTER_PARA * When the DEVMODE is already set on the printer, don't try to unpack it. */ - if (!printer->info_2->devmode) { + if (!printer->info_2->devmode && param->data_len) { /* * Set devmode on printer info, so entire printer initialization can be * saved to tdb. -- cgit