13 Nov
2012
13 Nov
'12
12:22 p.m.
Qian Hong <fracting(a)gmail.com> writes:
+static inline void set_cache_invalid_char(const HDC hdc, ScriptCache *sc) +{ +#define Zero_width_space 0x200b /* Zero Width Space */ +#define Invalid_char3 0xf71b /* Unknow, found by black box testing */ +#define NON_EXIST_INDEX 0xffff /* Default non exist char index */ + WCHAR invalid_chars[3] = {Numeric_space, Zero_width_space, Invalid_char3};
There's no reason to add #defines for that kind of thing, just put the values in the string directly. -- Alexandre Julliard julliard(a)winehq.org