[WIN32K] -Use RtlStringCchCopyW instead of RtlStringCbCopyW in SubstituteFontRecurse as LF_FACESIZE is the number of characters of the buffer. Patch by Katayama Hirofumi MZ. CORE-13419, CORE-13416

svn path=/trunk/; revision=75026
This commit is contained in:
Giannis Adamopoulos
2017-06-13 20:17:07 +00:00
parent eb3f29d2ad
commit 74cca4dd1e
+1 -1
View File
@@ -599,7 +599,7 @@ SubstituteFontRecurse(LOGFONTW* pLogFont)
if (!Found)
break;
RtlStringCbCopyW(pLogFont->lfFaceName, LF_FACESIZE, OutputNameW.Buffer);
RtlStringCchCopyW(pLogFont->lfFaceName, LF_FACESIZE, OutputNameW.Buffer);
if (CharSetMap[FONTSUBST_FROM] == DEFAULT_CHARSET ||
CharSetMap[FONTSUBST_FROM] == pLogFont->lfCharSet)