Huw Davies : wineps.drv: Ignore an empty output string.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 10 10:18:02 CDT 2007
Module: wine
Branch: master
Commit: 5dadeeb29d36a93b3bbeec8d7b1d237f29bf8f67
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5dadeeb29d36a93b3bbeec8d7b1d237f29bf8f67
Author: Huw Davies <huw at 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 );
More information about the wine-cvs
mailing list