- Patch by Henri Verbeet : Ensure at least one character is used in TEXT_WordBreak().

svn path=/trunk/; revision=63602
This commit is contained in:
James Tabor 2014-06-15 21:53:23 +00:00
parent 09fe96f361
commit d81aed45c9

View file

@ -636,8 +636,9 @@ static void TEXT_WordBreak (HDC hdc, WCHAR *str, unsigned int max_str,
DT_EDITCONTROL)
{
/* break the word after the last character that fits (there must be
* at least one; none is caught earlier).
*/
* at least one). */
if (!chars_fit)
++chars_fit;
*len_str = chars_fit;
*chars_used = chars_fit;