[PATCH 1/2] user32/edit: In EM_POSFROMCHAR return correct position for empty lines

Nikolay Sivov bunglehead at gmail.com
Thu Jul 4 12:15:57 CDT 2019


On Thu, Jul 4, 2019 at 7:46 PM Fabian Maurer <dark.shadow4 at web.de> wrote:

> Any news on this patchset?


@@ -1102,7 +1102,7 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE
*es, INT index, BOOL after_wrap)
 			x -= es->x_offset;
 		}
 		else
-			x = es->x_offset;
+			x = (lw > 0 ? es->x_offset : -es->x_offset);

 		if (es->style & ES_RIGHT)
 			x = w - (lw - x);

How to trigger this alternate path which is !ssa && lw > 0? In other
words, do we have tests for both cases of that else branch.



>
>
> Regards,
> Fabian Maurer
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190704/d2c1a447/attachment.html>


More information about the wine-devel mailing list