[WIN32K] -Use RtlStringCchCopyW instead of RtlStringCbCopyW in SubstituteFontRecurse...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 13 Jun 2017 20:17:07 +0000 (20:17 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 13 Jun 2017 20:17:07 +0000 (20:17 +0000)
svn path=/trunk/; revision=75026

reactos/win32ss/gdi/ntgdi/freetype.c

index 6c0b83e..4cbd3a2 100644 (file)
@@ -599,7 +599,7 @@ SubstituteFontRecurse(LOGFONTW* pLogFont)
         if (!Found)
             break;
 
         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)
 
         if (CharSetMap[FONTSUBST_FROM] == DEFAULT_CHARSET ||
             CharSetMap[FONTSUBST_FROM] == pLogFont->lfCharSet)