Permalink
Browse files

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

Signed-off-by: Doug Lyons <douglyons@douglyons.com>
CORE-15333
  • Loading branch information...
katahiromz committed Nov 5, 2018
1 parent 0d4591c commit 64e217e97ced9315d0a394576d95182d4634e770
Showing with 2 additions and 1 deletion.
  1. +2 −1 win32ss/gdi/ntgdi/freetype.c
@@ -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
{

0 comments on commit 64e217e

Please sign in to comment.