Commit 87bb1cbc authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32: Correct termination of returning string in Text_Ellipsify.

parent 6868691a
......@@ -179,7 +179,7 @@ static void TEXT_Ellipsify (HDC hdc, WCHAR *str, unsigned int max_len,
if (modstr)
{
memcpy (modstr, str, *len_str * sizeof(WCHAR));
*(str+*len_str) = '\0';
modstr[*len_str] = '\0';
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment