diff options
author | Jeremy Allison <jra@samba.org> | 2002-02-27 22:40:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-02-27 22:40:12 +0000 |
commit | 9d975fa6bcf6e425cce890328be4f67534b29ba1 (patch) | |
tree | 66fee4fbf58db1f699603f5edeef027d7efbb3bc | |
parent | 8071fb8c05be5549e7fb424da2b563c0b2025c68 (diff) | |
download | samba-9d975fa6bcf6e425cce890328be4f67534b29ba1.tar.gz samba-9d975fa6bcf6e425cce890328be4f67534b29ba1.tar.bz2 samba-9d975fa6bcf6e425cce890328be4f67534b29ba1.zip |
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)
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |