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
063b3bc9
Commit
063b3bc9
authored
Aug 20, 2014
by
Jactry Zeng
Committed by
Alexandre Julliard
Aug 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Pass count of character into ME_WordBreakProc() instead of count of byte.
parent
3a372f26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
string.c
dlls/riched20/string.c
+2
-3
No files found.
dlls/riched20/string.c
View file @
063b3bc9
...
...
@@ -125,8 +125,7 @@ ME_WordBreakProc(LPWSTR s, INT start, INT len, INT code)
/* FIXME: Native also knows about punctuation */
TRACE
(
"s==%s, start==%d, len==%d, code==%d
\n
"
,
debugstr_wn
(
s
,
len
),
start
,
len
,
code
);
/* convert number of bytes to number of characters. */
len
/=
sizeof
(
WCHAR
);
switch
(
code
)
{
case
WB_ISDELIMITER
:
...
...
@@ -154,7 +153,7 @@ int
ME_CallWordBreakProc
(
ME_TextEditor
*
editor
,
WCHAR
*
str
,
INT
len
,
INT
start
,
INT
code
)
{
if
(
!
editor
->
pfnWordBreak
)
{
return
ME_WordBreakProc
(
str
,
start
,
len
*
sizeof
(
WCHAR
)
,
code
);
return
ME_WordBreakProc
(
str
,
start
,
len
,
code
);
}
else
if
(
!
editor
->
bEmulateVersion10
)
{
/* MSDN lied about the third parameter for EditWordBreakProc being the number
* of characters, it is actually the number of bytes of the string. */
...
...
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