Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
71a8a74b
Commit
71a8a74b
authored
Apr 27, 2002
by
Robert O'Callahan
Committed by
Alexandre Julliard
Apr 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in TEXT_WordBreak that was variously throwing Lotus Notes
into an infinite loop or causing it to crash.
parent
5769d1de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
text.c
dlls/user/text.c
+3
-1
No files found.
dlls/user/text.c
View file @
71a8a74b
...
...
@@ -356,13 +356,15 @@ static void TEXT_WordBreak (HDC hdc, WCHAR *str, unsigned int max_str,
/* If there was one or the first character didn't fit then */
if
(
word_fits
)
{
int
next_is_space
;
/* break the line before/after that character */
if
(
!
(
format
&
(
DT_RIGHT
|
DT_CENTER
))
||
*
p
!=
SPACE
)
p
++
;
next_is_space
=
(
p
-
str
)
<
*
len_str
&&
*
p
==
SPACE
;
*
len_str
=
p
-
str
;
/* and if the next character is a space then discard it. */
*
chars_used
=
*
len_str
;
if
(
*
p
==
SPACE
)
if
(
next_is_space
)
(
*
chars_used
)
++
;
}
/* Suppose there was none. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment