Alexandre,
--- Alexandre Julliard julliard@winehq.com wrote:
Andriy Palamarchuk apa3a@yahoo.com writes:
The best approach I could think of is to send an internal message from this location which returns lengths of Unicode and ASCII strings. This message will be processed only by our controls. If lengths of the Unicode strings are the same
this
means that both are generated by our code for the
same
text and I return the A length. If the lengths are different this means length was generated not in
our
code and I keep existing behavior (return double original Unicode length).
Actually our code should never have that problem because we have both ASCII and Unicode winprocs for all controls. But there were a few ASCII/Unicode mismatches in the combobox, I believe it should be fixed now.
Your patches fix the controls logic but not the problem of mapping return values of WM_GETTEXTLENGTH message from Unicode to ASCII.
Just refreshed Wine and tested. Still see the bug. You can check it yourself using the test case in the bug: http://bugs.winehq.com/show_bug.cgi?id=791 Comment out the mentioned code snippet and it works.
Andriy
__________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com