[Bug 34564] RTX Server fail to import user template database with builtin msvcp60

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Sep 23 05:03:06 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=34564

--- Comment #3 from Qian Hong <fracting at 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()?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list