mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user