1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +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:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 3f9063167f
commit 51c3d35363

View File

@ -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.