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.
http://bugs.winehq.org/show_bug.cgi?id=10542
--- Comment #1 from Lei Zhang thestig@google.com 2007-11-24 13:30:51 --- please send the fix in the git format to wine-patches@winehq.org
please refer to http://wiki.winehq.org/GitWine for setting up git.
http://bugs.winehq.org/show_bug.cgi?id=10542
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com 2008-05-21 12:06:00 --- Created an attachment (id=13219) --> (http://bugs.winehq.org/attachment.cgi?id=13219) patch
Posted to wine-patches..So waiting
http://bugs.winehq.org/show_bug.cgi?id=10542
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com 2008-05-21 16:46:08 --- A patch's been committed just now, so this could be closed.
http://bugs.winehq.org/show_bug.cgi?id=10542
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com 2008-05-21 17:47:20 --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=10542
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2008-05-23 10:38:04 --- Closing bugs fixed in 1.0-rc2.
http://bugs.winehq.org/show_bug.cgi?id=10542
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified
http://bugs.winehq.org/show_bug.cgi?id=10542
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other OS/Version|All |other
--- Comment #6 from Austin English austinenglish@gmail.com 2012-02-23 15:14:47 CST --- Removing deprecated 'All' Platform/OS.