mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +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;
|
DWORD num_ranges = 0;
|
||||||
FT_Face face = Font->SharedFace->Face;
|
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)
|
if (face->charmap->encoding == FT_ENCODING_UNICODE)
|
||||||
{
|
{
|
||||||
FT_UInt glyph_code = 0;
|
FT_UInt glyph_code = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue