[try 2] user32: GetMenuStringA now returns correct buffer length for multibyte menu text. (with test)

Alexandre Julliard julliard at winehq.org
Thu Jul 3 05:38:25 CDT 2008


"Huang, Zhangrong" <hzhrong at gmail.com> writes:

> @@ -665,6 +678,26 @@ static void test_menu_add_string( void )
>      else
>          ok (!ret, "GetMenuStringW on ownerdraw entry succeeded.\n");
>  
> +    /* test multibyte menu text */
> +    strcpy(string, "\xce\xc4\xbc\xfe(&F)"); /* CP936 */

You shouldn't hardcode codepage 936. Look at test_dbcs_wm_char() in
msg.c to see how to test DBCS chars in a generic way.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list