Author: jimtabor
Date: Sun Jun 15 21:53:23 2014
New Revision: 63602
URL:
http://svn.reactos.org/svn/reactos?rev=63602&view=rev
Log:
[User32]
- Patch by Henri Verbeet : Ensure at least one character is used in TEXT_WordBreak().
Modified:
trunk/reactos/win32ss/user/user32/windows/font.c
Modified: trunk/reactos/win32ss/user/user32/windows/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/font.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/font.c [iso-8859-1] Sun Jun 15 21:53:23
2014
@@ -636,8 +636,9 @@
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;