Browse Source

freetype/win32: fix string constant when using WCHAR/wchar_t API's explicitely

wcscat_s is part of msvcrt.dll so should be in Windows XP.

(cherry picked from commit ab501d6a93) (edited)
edited:
- 3.0 was already using a long constant

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
cherry-pick-c5513cf9
Steve Lhomme 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
ed469a1388
  1. 2
      modules/text_renderer/freetype/fonts/win32.c

2
modules/text_renderer/freetype/fonts/win32.c

@ -170,7 +170,7 @@ static char* GetWindowsFontPath()
if( S_OK != SHGetFolderPathW( NULL, CSIDL_FONTS, NULL, SHGFP_TYPE_CURRENT, wdir ) )
{
GetWindowsDirectoryW( wdir, MAX_PATH );
wcscat( wdir, L"\\fonts" );
wcscat_s( wdir, MAX_PATH, L"\\fonts" );
}
return FromWide( wdir );
}

Loading…
Cancel
Save