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
8b613eb2
Commit
8b613eb2
authored
Nov 03, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Nov 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use a paragraph ptr in the clipboard get text function.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b132d8bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
clipboard.c
dlls/riched20/clipboard.c
+3
-4
No files found.
dlls/riched20/clipboard.c
View file @
8b613eb2
...
...
@@ -344,13 +344,12 @@ static HGLOBAL get_unicode_text(ME_TextEditor *editor, const ME_Cursor *start, i
int
pars
=
0
;
WCHAR
*
data
;
HANDLE
ret
;
ME_
DisplayItem
*
para
;
ME_
Paragraph
*
para
;
int
nEnd
=
ME_GetCursorOfs
(
start
)
+
nChars
;
/* count paragraphs in range */
para
=
start
->
pPara
;
while
((
para
=
para
->
member
.
para
.
next_para
)
&&
para
->
member
.
para
.
nCharOfs
<=
nEnd
)
para
=
&
start
->
pPara
->
member
.
para
;
while
((
para
=
para_next
(
para
))
&&
para
->
nCharOfs
<=
nEnd
)
pars
++
;
ret
=
GlobalAlloc
(
GMEM_MOVEABLE
,
sizeof
(
WCHAR
)
*
(
nChars
+
pars
+
1
));
...
...
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