Commit dde7ca22 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

wineps.drv: Properly handle NULL LPLOGFONT in PSDRV_EnumDeviceFonts.

parent e11d7c63
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment