mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[User32]
- Patch by Henri Verbeet : Ensure at least one character is used in TEXT_WordBreak(). svn path=/trunk/; revision=63602
This commit is contained in:
parent
09fe96f361
commit
d81aed45c9
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue