[WIN32SS][FONT] Fix regression of #1004 (#1012)

Signed-off-by: Doug Lyons <douglyons@douglyons.com>
CORE-15333
This commit is contained in:
Katayama Hirofumi MZ 2018-11-05 16:24:23 +09:00 committed by GitHub
parent 0d4591c672
commit 64e217e97c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1053,7 +1053,8 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont,
return 0; /* failure */
}
IntUnicodeStringToBuffer(FontGDI->Filename, sizeof(FontGDI->Filename), pFileName);
RtlCopyMemory(FontGDI->Filename, pFileName->Buffer, pFileName->Length);
FontGDI->Filename[pFileName->Length / sizeof(WCHAR)] = UNICODE_NULL;
}
else
{