Author: gadamopoulos
Date: Tue Jun 13 20:17:07 2017
New Revision: 75026

URL: http://svn.reactos.org/svn/reactos?rev=75026&view=rev
Log:
[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

Modified:
    trunk/reactos/win32ss/gdi/ntgdi/freetype.c

Modified: trunk/reactos/win32ss/gdi/ntgdi/freetype.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/freetype.c?rev=75026&r1=75025&r2=75026&view=diff
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/freetype.c  [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/freetype.c  [iso-8859-1] Tue Jun 13 
20:17:07 2017
@@ -599,7 +599,7 @@
         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)


Reply via email to