winspool: Propagate the printer's devmode to a new job.

This commit is contained in:
Huw Davies 2012-04-02 11:42:36 +01:00 committed by Alexandre Julliard
parent 114a439fed
commit 0b9a3f9de4
1 changed files with 1 additions and 1 deletions

View File

@ -2311,7 +2311,7 @@ BOOL WINAPI AddJobW(HANDLE hPrinter, DWORD Level, LPBYTE pData, DWORD cbBuf, LPD
memcpy(job->filename, filename, (len + 1) * sizeof(WCHAR));
job->document_title = strdupW(default_doc_title);
job->printer_name = strdupW(printer->name);
job->devmode = NULL;
job->devmode = dup_devmode( printer->devmode );
list_add_tail(&printer->queue->jobs, &job->entry);
*pcbNeeded = (len + 1) * sizeof(WCHAR) + sizeof(*addjob);