Module: wine Branch: master Commit: 5dadeeb29d36a93b3bbeec8d7b1d237f29bf8f67 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5dadeeb29d36a93b3bbeec8d7b...
Author: Huw Davies huw@codeweavers.com Date: Fri Sep 7 11:29:56 2007 +0100
wineps.drv: Ignore an empty output string.
---
dlls/wineps.drv/init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c index d499247..82ed439 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 );