[2/2] oleacc: implemented GetRoleText[A/W] with some tests

Dmitry Timoshkov dmitry at codeweavers.com
Wed Sep 24 23:33:50 CDT 2008


Nikolay Sivov <bunglehead at gmail.com> wrote:

> +UINT WINAPI GetRoleTextA(DWORD role, LPSTR lpRole, UINT rolemax)
> +{
> +    UINT length;
> +    WCHAR *roletext;
> +    INT ret;
> +
> +    TRACE("%u %p %u\n", role, lpRole, rolemax);
> +
> +    length = GetRoleTextW(role, NULL, 0);
> +
> +    if(!length || !lpRole)
> +        return length;

This won't work for a multibyte locale.

-- 
Dmitry.



More information about the wine-devel mailing list