http://bugs.winehq.org/show_bug.cgi?id=10542
Summary: Bug in TEXT_Ellipsify when returning modstr Product: Wine Version: CVS/GIT Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-user AssignedTo: wine-bugs@winehq.org ReportedBy: mxmauro@hotmail.com
Hi,
In the TEXT_Ellipsify function located in dlls/user32/text.c, the last lines are:
if (modstr) { memcpy (modstr, str, *len_str * sizeof(WCHAR)); *(str+*len_str) = '\0'; }
and they should be:
if (modstr) { memcpy (modstr, str, *len_str * sizeof(WCHAR)); *(modstr+*len_str) = '\0'; }
like in TEXT_PathEllipsify (is correct there). Checked in latest cvs repository.
Best regards, Mauro.