[start][start][try2] Output with console encoding

Robert Shearman rob at codeweavers.com
Mon Feb 19 17:16:27 CST 2007


Anatoly Lyutin wrote:
> +        len = MultiByteToWideChar( CP_ACP, 0, message, -1, NULL, 0 );
> +        bufW = HeapAlloc( GetProcessHeap(), 0, len );
> +

len is in WCHARs, not bytes so this will cause heap corruption.

It really would be a lot easier to make "output" take a Unicode string 
instead.

-- 
Rob Shearman




More information about the wine-devel mailing list