1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +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 -
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. * 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 * Set devmode on printer info, so entire printer initialization can be
* saved to tdb. * saved to tdb.