Commit 2bfe9ce8 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Remove no longer used output parameter handling from PSDRV_CreateDC.

We're storing it now in DC attributes.
parent 4a8cdc2b
......@@ -459,17 +459,9 @@ INT CDECL PSDRV_StartDoc( PHYSDEV dev, const DOCINFOW *doc )
}
di.pDocName = (LPWSTR) doc->lpszDocName;
di.pOutputFile = (LPWSTR) doc->lpszOutput;
di.pDatatype = NULL;
if(doc->lpszOutput)
di.pOutputFile = (LPWSTR) doc->lpszOutput;
else if(physDev->job.output)
di.pOutputFile = physDev->job.output;
else
di.pOutputFile = NULL;
TRACE("using output: %s\n", debugstr_w(di.pOutputFile));
/* redirection located in HKCU\Software\Wine\Printing\Spooler
is done during winspool.drv,ScheduleJob */
physDev->job.id = StartDocPrinterW(physDev->job.hprinter, 1, (LPBYTE) &di);
......
......@@ -387,8 +387,6 @@ static BOOL CDECL PSDRV_CreateDC( PHYSDEV *pdev, LPCWSTR device, LPCWSTR output,
if (!(physDev = create_psdrv_physdev( pi ))) return FALSE;
if (output && *output) physDev->job.output = strdupW( output );
if(initData)
{
dump_devmode(initData);
......@@ -432,7 +430,6 @@ static BOOL CDECL PSDRV_DeleteDC( PHYSDEV dev )
TRACE("\n");
HeapFree( GetProcessHeap(), 0, physDev->Devmode );
HeapFree( GetProcessHeap(), 0, physDev->job.output );
HeapFree( GetProcessHeap(), 0, physDev );
return TRUE;
......
......@@ -352,7 +352,6 @@ enum passthrough
typedef struct {
DWORD id; /* Job id */
HANDLE hprinter; /* Printer handle */
LPWSTR output; /* Output file/port */
LPWSTR doc_name; /* Document Name */
BOOL banding; /* Have we received a NEXTBAND */
BOOL OutOfPage; /* Page header not sent yet */
......
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