From 2844f383f13e6cda295a8272d5c956af6efc2e0b Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 7 Dec 2006 15:28:27 +0000 Subject: [PATCH] wineps.drv: Don't try to download a non-scalable font. --- dlls/wineps.drv/download.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wineps.drv/download.c b/dlls/wineps.drv/download.c index 670902e485..5d35f5d2c8 100644 --- a/dlls/wineps.drv/download.c +++ b/dlls/wineps.drv/download.c @@ -131,6 +131,7 @@ BOOL PSDRV_SelectDownloadFont(PSDRV_PDEVICE *physDev) 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);