[PATCH 2/2] usp10: Fixed wgBlank, wgDefault, wgInvalid and wgKashida.

Alexandre Julliard julliard at winehq.org
Tue Nov 13 12:22:21 CST 2012


Qian Hong <fracting at 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 at winehq.org



More information about the wine-devel mailing list