diff options
author | KUDr <kudr@openttd.org> | 2007-02-04 11:33:02 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-02-04 11:33:02 +0000 |
commit | ccffde6d7e3522c0373b686ccb64c68014ed40a5 (patch) | |
tree | c1ea2f79e7763cce1f4a0392a37d3f42a63af217 /src | |
parent | 8b8e41ceb86a1cbe3e974b07ae642b05c9ffdcfa (diff) | |
download | openttd-ccffde6d7e3522c0373b686ccb64c68014ed40a5.tar.xz |
(svn r8576) -Fix: wrong type given to MallocT (VC2003, UNICODE build)
Diffstat (limited to 'src')
-rw-r--r-- | src/fontcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<char>(MAX_PATH); + font_namep = MallocT<TCHAR>(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 |