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

Fixed typo where docname was being checked for datatype - was causing

STARTDOCPRINTER call to fail. I *love* Gerald's test code :-).
Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent a87f6277b1
commit 43192370f3

View File

@ -2919,7 +2919,7 @@ uint32 _spoolss_startdocprinter(POLICY_HND *handle, uint32 level,
*/
if (info_1->p_datatype != 0) {
unistr2_to_ascii(datatype, &info_1->docname, sizeof(datatype));
unistr2_to_ascii(datatype, &info_1->datatype, sizeof(datatype));
if (strcmp(datatype, "RAW") != 0) {
(*jobid)=0;
return ERROR_INVALID_DATATYPE;