mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
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 commit is contained in:
parent
3f9063167f
commit
51c3d35363
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user