Fixed typo where docname was being checked for datatype - was causing
authorJeremy Allison <jra@samba.org>
Fri, 8 Sep 2000 02:20:48 +0000 (02:20 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 8 Sep 2000 02:20:48 +0000 (02:20 +0000)
STARTDOCPRINTER call to fail. I *love* Gerald's test code :-).
Jeremy.
(This used to be commit 43192370f31c7cc71d1f72449a067573adad3ebc)

source3/rpc_server/srv_spoolss_nt.c

index 71df03cd087b119cd3b488910e111a8340d8d6e9..52a677fbe0fa69106b22eca6feb3cdcba88f3389 100644 (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;