Commit cafb192e authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Don't query the position of the one-past-the-end character with IMR_QUERYCHARPOSITION.

This means the resulting rectangle will be short, but we don't have much choice. Some apps don't cope properly with the one-past-the-end character. For example, Excel 2007 gets stuck in an infinite loop.
parent 341db6d8
......@@ -1509,7 +1509,7 @@ BOOL query_ime_char_rect(macdrv_query* query)
*rect = CGRectMake(charpos.pt.x, charpos.pt.y, 0, charpos.cLineHeight);
/* iterate over rest of length to extend rect */
for (i = 1; i <= range->length; i++)
for (i = 1; i < range->length; i++)
{
charpos.dwSize = sizeof(charpos);
charpos.dwCharPos = range->location + i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment