http://bugs.winehq.org/show_bug.cgi?id=34564
--- Comment #3 from Qian Hong fracting@gmail.com 2013-09-23 05:03:06 CDT --- (In reply to comment #2)
Created attachment 46034 [details] fix for char_traits<wchar>::assign function
Could you please check if this patch fixes the bug? If it still doesn't work please attach a new log (from wine with this patch applied).
Thanks the work, the patch fix the bug!
-static wchar_t* char_traits_wchar_assignn(wchar_t *str, MSVCP_size_t num, wchar_t c) +static wchar_t* char_traits_wchar_assignn(wchar_t *str, + MSVCP_size_t num, wchar_t c) { - return memset(str, c, num); + MSVCP_size_t i; + + for(i=0; i<num; i++) + str[i] = c; + + return str; }
BTW, how about using wmemset()?