1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +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 used to be commit 0ab6eb01b0)
This commit is contained in:
Jeremy Allison
2000-11-22 01:26:09 +00:00
parent 7254a66e00
commit 6003be4856

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))
return False;
#if 0
/*
* Older build versions of W2K seem to need this. JRA.
*/
if(!prs_uint32("dummy4", ps, depth, &il->dummy4))
return False;
#endif
if (il->version != 0) {
/*
* 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("name_ptr", ps, depth, &il->name_ptr))
return False;
if(!prs_uint32("environment_ptr", ps, depth, &il->environment_ptr))