mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTGDI] Check if face->charmap is not zero before accessing its encoding (#4390)
This allows DevExpress Ribbon Notepad sample to start. Also add a fat DPRINT1 suggested by Timo Kreuzer, because there is a lot wrong in the code. CORE-18091 CORE-18558
This commit is contained in:
parent
346477fb3c
commit
a999c43746
1 changed files with 6 additions and 0 deletions
|
@ -4490,6 +4490,12 @@ ftGetFontUnicodeRanges(PFONTGDI Font, PGLYPHSET glyphset)
|
|||
DWORD num_ranges = 0;
|
||||
FT_Face face = Font->SharedFace->Face;
|
||||
|
||||
if (face->charmap == NULL)
|
||||
{
|
||||
DPRINT1("FIXME: No charmap selected! This is a BUG!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (face->charmap->encoding == FT_ENCODING_UNICODE)
|
||||
{
|
||||
FT_UInt glyph_code = 0;
|
||||
|
|
Loading…
Reference in a new issue