equal
deleted
inserted
replaced
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 |