From 51c3d3536335a72aa264e3f4d62515f5c0b6d192 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 27 Feb 2002 22:40:12 +0000 Subject: [PATCH] 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. --- source/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 97f8ad360c5..72e4c47f28d 100644 --- a/source/printing/nt_printing.c +++ b/source/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.