1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3-spoolss: Added missing Printer Driver in winreg_{update,get}_printer.

Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2010-04-23 21:37:13 +02:00 committed by Günther Deschner
parent 6659a0fe92
commit a5fb4117e1

View File

@ -1675,6 +1675,17 @@ WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
}
}
if (info2_mask & SPOOLSS_PRINTER_INFO_DRIVERNAME) {
result = winreg_printer_write_sz(tmp_ctx,
winreg_pipe,
&key_hnd,
"Printer Driver",
info2->drivername);
if (!W_ERROR_IS_OK(result)) {
goto done;
}
}
if (info2_mask & SPOOLSS_PRINTER_INFO_LOCATION) {
result = winreg_printer_write_sz(tmp_ctx,
winreg_pipe,
@ -1999,6 +2010,12 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx,
&info2->parameters);
CHECK_ERROR(result);
result = winreg_enumval_to_sz(info2,
v,
"Printer Driver",
&info2->drivername);
CHECK_ERROR(result);
result = winreg_enumval_to_dword(info2,
v,
"Attributes",