projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d4591c
)
[WIN32SS][FONT] Fix regression of #1004 (#1012)
author
Katayama Hirofumi MZ
<katayama.hirofumi.mz@gmail.com>
Mon, 5 Nov 2018 07:24:23 +0000
(16:24 +0900)
committer
GitHub
<noreply@github.com>
Mon, 5 Nov 2018 07:24:23 +0000
(16:24 +0900)
Signed-off-by: Doug Lyons <douglyons@douglyons.com>
CORE-15333
win32ss/gdi/ntgdi/freetype.c
patch
|
blob
|
history
diff --git
a/win32ss/gdi/ntgdi/freetype.c
b/win32ss/gdi/ntgdi/freetype.c
index
ee242a3
..
ce655c5
100644
(file)
--- 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
{