Mercurial > hg > openttd
changeset 5937:50d3857901d4 draft
(svn r8576) -Fix: wrong type given to MallocT (VC2003, UNICODE build)
author | KUDr <KUDr@openttd.org> |
---|---|
date | Sun, 04 Feb 2007 11:33:02 +0000 |
parents | 4bf190a1dab7 |
children | e0bf6bd35254 |
files | src/fontcache.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -78,7 +78,7 @@ * 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