wineps.drv: Ignore an empty output string.
This commit is contained in:
parent
5e674f3580
commit
5dadeeb29d
|
@ -356,7 +356,7 @@ BOOL PSDRV_CreateDC( HDC hdc, PSDRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR devi
|
|||
physDev->logPixelsX = physDev->pi->ppd->DefaultResolution;
|
||||
physDev->logPixelsY = physDev->pi->ppd->DefaultResolution;
|
||||
|
||||
if (output) {
|
||||
if (output && *output) {
|
||||
INT len = WideCharToMultiByte( CP_ACP, 0, output, -1, NULL, 0, NULL, NULL );
|
||||
if ((physDev->job.output = HeapAlloc( PSDRV_Heap, 0, len )))
|
||||
WideCharToMultiByte( CP_ACP, 0, output, -1, physDev->job.output, len, NULL, NULL );
|
||||
|
|
Loading…
Reference in New Issue