1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

ADDPRINTERDRIVER info level 6 fix - this is dynamic depending

on a field in the struct - that's why it was so hard to find.
Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 00cd72c385
commit 0ab6eb01b0

View File

@ -4340,13 +4340,15 @@ BOOL spool_io_printer_driver_info_level_6(char *desc, SPOOL_PRINTER_DRIVER_INFO_
if(!prs_uint32("version", ps, depth, &il->version)) if(!prs_uint32("version", ps, depth, &il->version))
return False; return False;
#if 0 if (il->version != 0) {
/* /*
* Older build versions of W2K seem to need this. JRA. * If version != 0 then there are an extra 4 bytes.
*/ * JohnR and I have verified this at Roseville... JRA.
if(!prs_uint32("dummy4", ps, depth, &il->dummy4)) */
return False; if(!prs_uint32("dummy4", ps, depth, &il->dummy4))
#endif return False;
}
if(!prs_uint32("name_ptr", ps, depth, &il->name_ptr)) if(!prs_uint32("name_ptr", ps, depth, &il->name_ptr))
return False; return False;
if(!prs_uint32("environment_ptr", ps, depth, &il->environment_ptr)) if(!prs_uint32("environment_ptr", ps, depth, &il->environment_ptr))