From dde7ca22c2aed1866b5bb5329dc05e0aa5d9b4e8 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 21 Jan 2008 10:46:20 -0600 Subject: [PATCH] wineps.drv: Properly handle NULL LPLOGFONT in PSDRV_EnumDeviceFonts. --- dlls/wineps.drv/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wineps.drv/builtin.c b/dlls/wineps.drv/builtin.c index 01547db17a0..c075049914c 100644 --- a/dlls/wineps.drv/builtin.c +++ b/dlls/wineps.drv/builtin.c @@ -413,7 +413,7 @@ BOOL PSDRV_EnumDeviceFonts( PSDRV_PDEVICE *physDev, LPLOGFONTW plf, FONTFAMILY *family; char FaceName[LF_FACESIZE]; - if( plf->lfFaceName[0] ) { + if( plf && plf->lfFaceName[0] ) { WideCharToMultiByte(CP_ACP, 0, plf->lfFaceName, -1, FaceName, sizeof(FaceName), NULL, NULL); TRACE("lfFaceName = '%s'\n", FaceName);