From 3d59cf057356836c56ab782de7253f7612982b04 Mon Sep 17 00:00:00 2001 From: KUDr Date: Sun, 4 Feb 2007 11:33:02 +0000 Subject: (svn r8576) -Fix: wrong type given to MallocT (VC2003, UNICODE build) --- src/fontcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fontcache.cpp') diff --git a/src/fontcache.cpp b/src/fontcache.cpp index b44289bc7..5c5a7cbee 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -78,7 +78,7 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face) * normal char to match the data returned by RegEnumValue, * otherwise just use parameter */ #if defined(UNICODE) - font_namep = MallocT(MAX_PATH); + font_namep = MallocT(MAX_PATH); MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR)); #else font_namep = (char*)font_name; // only cast because in unicode pointer is not const -- cgit v1.2.3-54-g00ecf