gdi32: Prevent character code from wrapping around.

Alexandre Julliard julliard at
Mon Jan 24 09:05:38 CST 2011

Kusanagi Kouichi <slash at> writes:

> If lastChar is 0xffffffff, FONT_GetCharsByRangeA falls into
> infinite loop and crash.

You probably want more sanity checks (with tests), characters above
0xffff wouldn't make sense anyway.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list