https://git.reactos.org/?p=reactos.git;a=commitdiff;h=64e217e97ced9315d0a394...
commit 64e217e97ced9315d0a394576d95182d4634e770 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Mon Nov 5 16:24:23 2018 +0900 Commit: GitHub noreply@github.com CommitDate: Mon Nov 5 16:24:23 2018 +0900
[WIN32SS][FONT] Fix regression of #1004 (#1012)
Signed-off-by: Doug Lyons douglyons@douglyons.com CORE-15333 --- win32ss/gdi/ntgdi/freetype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index ee242a39ce..ce655c5d3e 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/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 {