mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 22:30:15 +00:00
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 a new issue