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 used to be commit 43192370f3)
This commit is contained in:
Jeremy Allison 2000-09-08 02:20:48 +00:00
parent f4ae5a6e38
commit 912ecf7fb9

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;