summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-27 22:40:12 +0000
committerJeremy Allison <jra@samba.org>2002-02-27 22:40:12 +0000
commit51c3d3536335a72aa264e3f4d62515f5c0b6d192 (patch)
tree7476479bc7bbf0bbde76b54ed82f128d13ba1e3d
parent3f9063167f3fc9ae7e7fd753d76ece23c1d97800 (diff)
downloadsamba-51c3d3536335a72aa264e3f4d62515f5c0b6d192.tar.gz
samba-51c3d3536335a72aa264e3f4d62515f5c0b6d192.tar.xz
samba-51c3d3536335a72aa264e3f4d62515f5c0b6d192.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.
-rw-r--r--source/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
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.