Commit 25f9d6e3 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winspool: Initialise portname.

parent fe4cb844
......@@ -2309,6 +2309,7 @@ BOOL WINAPI AddJobW(HANDLE hPrinter, DWORD Level, LPBYTE pData, DWORD cbBuf, LPD
len = strlenW(filename);
job->filename = HeapAlloc(GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR));
memcpy(job->filename, filename, (len + 1) * sizeof(WCHAR));
job->portname = NULL;
job->document_title = strdupW(default_doc_title);
job->printer_name = strdupW(printer->name);
job->devmode = dup_devmode( printer->devmode );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment