WM_GETTEXTLENGTH returns double size
apa3a at yahoo.com
Thu Jun 13 15:09:26 CDT 2002
--- Alexandre Julliard <julliard at winehq.com> wrote:
> Andriy Palamarchuk <apa3a at 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
> > means that both are generated by our code for the
> > text and I return the A length. If the lengths are
> > different this means length was generated not in
> > 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
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:
Comment out the mentioned code snippet and it works.
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
More information about the wine-devel