summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-09-08 02:20:48 +0000
committerJeremy Allison <jra@samba.org>2000-09-08 02:20:48 +0000
commit912ecf7fb9d2276c7aa23dbe81f59af41fa422f1 (patch)
treeb29cb9bbc2884c2c65da264a6d8329be1025fd99 /source3/rpc_server/srv_spoolss_nt.c
parentf4ae5a6e389aa64782986ba6eed4bb1e31f1cb71 (diff)
downloadsamba-912ecf7fb9d2276c7aa23dbe81f59af41fa422f1.tar.gz
samba-912ecf7fb9d2276c7aa23dbe81f59af41fa422f1.tar.bz2
samba-912ecf7fb9d2276c7aa23dbe81f59af41fa422f1.zip
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 43192370f31c7cc71d1f72449a067573adad3ebc)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 71df03cd08..52a677fbe0 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -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;