mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
* Fix from SATOH Fumiyasu for bug 660 (failing to view print
jobs) by only enforce the 'max reported print jobs' parameter when it is non-zero. * Fixed bug 338 by making sure that data values are written out when we are marshalling an EnumPrinterDataEx() reply. This probably fixes other bugs reported against point-n-print feature in 3.0.0
This commit is contained in:
@ -7294,11 +7294,13 @@ static BOOL spoolss_io_printer_enum_values_ctr(const char *desc, prs_struct *ps,
|
||||
if (!prs_unistr("valuename", ps, depth, &ctr->values[i].valuename))
|
||||
return False;
|
||||
|
||||
if (UNMARSHALLING(ps) && ctr->values[i].data_len) {
|
||||
ctr->values[i].data = (uint8 *)prs_alloc_mem(
|
||||
ps, ctr->values[i].data_len);
|
||||
if (!ctr->values[i].data)
|
||||
return False;
|
||||
if ( ctr->values[i].data_len ) {
|
||||
if ( UNMARSHALLING(ps) ) {
|
||||
ctr->values[i].data = (uint8 *)prs_alloc_mem(
|
||||
ps, ctr->values[i].data_len);
|
||||
if (!ctr->values[i].data)
|
||||
return False;
|
||||
}
|
||||
if (!prs_uint8s(False, "data", ps, depth, ctr->values[i].data, ctr->values[i].data_len))
|
||||
return False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user