winebrowser: Educated guess if the DDE data is CHAR or WCHAR (try 2)

Dmitry Timoshkov dmitry at codeweavers.com
Mon Dec 8 07:06:32 CST 2008


"Paul Chitescu" <paulc at voip.null.ro> wrote:

> Changelog:
> winebrowser: Educated guess if the DDE data is CHAR or WCHAR
> 
> Our shell32 dde_connect implementation sends a CHAR buffer for if operating 
> system version is set to ANSI based and WCHAR if the system is set for 
> Unicode.
> 
> This patch makes winebrowser assume the same about the data it receives via 
> XTYP_EXECUTE. However, if the string starts with a quote (which normally 
> always happens) an extra effort is made to detect if the data is UTF-16 by 
> checking if the upper byte of the 1st WCHAR is zero.
> 
> This should fix bug #13891 for good (bugzilla describes a workaround that 
> avoids using DDE).

You should add a test case to find out what NT based/Win9x do in that case.

-- 
Dmitry.



More information about the wine-devel mailing list