mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
[0.4.11] [WIN32SS][FONT] Check NULL of Face->style_name (#1113)
CORE-15433
cherry picked from commit 0.4.12-dev-20-g
43e2089476
This commit is contained in:
parent
ba9846cda9
commit
7d0eadda9f
1 changed files with 2 additions and 1 deletions
|
@ -1095,7 +1095,8 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont,
|
|||
Status = RtlAnsiStringToUnicodeString(&Entry->FaceName, &AnsiString, TRUE);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
if (Face->style_name[0] && strcmp(Face->style_name, "Regular"))
|
||||
if (Face->style_name && Face->style_name[0] &&
|
||||
strcmp(Face->style_name, "Regular") != 0)
|
||||
{
|
||||
RtlInitAnsiString(&AnsiString, Face->style_name);
|
||||
Status = RtlAnsiStringToUnicodeString(&Entry->StyleName, &AnsiString, TRUE);
|
||||
|
|
Loading…
Reference in a new issue