mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +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:
parent
00cd72c385
commit
0ab6eb01b0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user