mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:57:19 +00:00
wineps: Remove no longer used output parameter handling from PSDRV_CreateDC.
We're storing it now in DC attributes.
This commit is contained in:
parent
4a8cdc2b49
commit
2bfe9ce883
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue