From 5dadeeb29d36a93b3bbeec8d7b1d237f29bf8f67 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 7 Sep 2007 11:29:56 +0100 Subject: [PATCH] wineps.drv: Ignore an empty output string. --- dlls/wineps.drv/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c index d499247ea7e..82ed4394fa8 100644 --- a/dlls/wineps.drv/init.c +++ b/dlls/wineps.drv/init.c @@ -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 );