wineps.drv: Properly handle NULL LPLOGFONT in PSDRV_EnumDeviceFonts.
This commit is contained in:
parent
e11d7c63b4
commit
dde7ca22c2
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue