src/fontcache.cpp
changeset 6188 e476dda82de7
parent 5889 272800d151ac
child 6285 187e3ef04cc9
equal deleted inserted replaced
6187:d55917194a4d 6188:e476dda82de7
    76 
    76 
    77 	/* For Unicode we need some conversion between widechar and
    77 	/* For Unicode we need some conversion between widechar and
    78 	 * normal char to match the data returned by RegEnumValue,
    78 	 * normal char to match the data returned by RegEnumValue,
    79 	 * otherwise just use parameter */
    79 	 * otherwise just use parameter */
    80 #if defined(UNICODE)
    80 #if defined(UNICODE)
    81 	font_namep = MallocT<char>(MAX_PATH);
    81 	font_namep = MallocT<TCHAR>(MAX_PATH);
    82 	MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR));
    82 	MB_TO_WIDE_BUFFER(font_name, font_namep, MAX_PATH * sizeof(TCHAR));
    83 #else
    83 #else
    84 	font_namep = (char*)font_name; // only cast because in unicode pointer is not const
    84 	font_namep = (char*)font_name; // only cast because in unicode pointer is not const
    85 #endif
    85 #endif
    86 
    86