wineps.drv: Properly handle NULL LPLOGFONT in PSDRV_EnumDeviceFonts.

This commit is contained in:
Aric Stewart 2008-01-21 10:46:20 -06:00 committed by Alexandre Julliard
parent e11d7c63b4
commit dde7ca22c2
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ BOOL PSDRV_EnumDeviceFonts( PSDRV_PDEVICE *physDev, LPLOGFONTW plf,
FONTFAMILY *family; FONTFAMILY *family;
char FaceName[LF_FACESIZE]; char FaceName[LF_FACESIZE];
if( plf->lfFaceName[0] ) { if( plf && plf->lfFaceName[0] ) {
WideCharToMultiByte(CP_ACP, 0, plf->lfFaceName, -1, WideCharToMultiByte(CP_ACP, 0, plf->lfFaceName, -1,
FaceName, sizeof(FaceName), NULL, NULL); FaceName, sizeof(FaceName), NULL, NULL);
TRACE("lfFaceName = '%s'\n", FaceName); TRACE("lfFaceName = '%s'\n", FaceName);