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.
This commit is contained in:
Ken Thomases 2014-07-16 12:59:03 -05:00 committed by Alexandre Julliard
parent 341db6d8d3
commit cafb192ecc
1 changed files with 1 additions and 1 deletions

View File

@ -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;