Huw Davies : wineps.drv: Don't try to download a non-scalable font.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 7 14:23:40 CST 2006


Module: wine
Branch: master
Commit: 2844f383f13e6cda295a8272d5c956af6efc2e0b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2844f383f13e6cda295a8272d5c956af6efc2e0b

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Dec  7 15:28:27 2006 +0000

wineps.drv: Don't try to download a non-scalable font.

---

 dlls/wineps.drv/download.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wineps.drv/download.c b/dlls/wineps.drv/download.c
index 670902e..5d35f5d 100644
--- a/dlls/wineps.drv/download.c
+++ b/dlls/wineps.drv/download.c
@@ -131,6 +131,7 @@ BOOL PSDRV_SelectDownloadFont(PSDRV_PDEV
     LPOUTLINETEXTMETRICA potm;
     DWORD len = GetOutlineTextMetricsA(physDev->hdc, 0, NULL);
 
+    if(!len) return FALSE;
     potm = HeapAlloc(GetProcessHeap(), 0, len);
     GetOutlineTextMetricsA(physDev->hdc, len, potm);
     get_download_name(physDev, potm, &ps_name);




More information about the wine-cvs mailing list