Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c0cd38fb
Commit
c0cd38fb
authored
Feb 22, 2006
by
Kevin Koltzau
Committed by
Alexandre Julliard
Feb 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Allocate proper amount of memory for formatetc array.
parent
6da92ded
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
clipboard.c
dlls/riched20/clipboard.c
+2
-1
No files found.
dlls/riched20/clipboard.c
View file @
c0cd38fb
...
...
@@ -397,10 +397,11 @@ HRESULT ME_GetDataObject(ME_TextEditor *editor, CHARRANGE *lpchrg, LPDATAOBJECT
obj
->
rtf
=
NULL
;
obj
->
fmtetc_cnt
=
1
;
if
(
editor
->
mode
&
TM_RICHTEXT
)
obj
->
fmtetc_cnt
++
;
obj
->
fmtetc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
obj
->
fmtetc_cnt
*
sizeof
(
FORMATETC
));
InitFormatEtc
(
obj
->
fmtetc
[
0
],
CF_UNICODETEXT
,
TYMED_HGLOBAL
);
if
(
editor
->
mode
&
TM_RICHTEXT
)
{
obj
->
fmtetc_cnt
++
;
obj
->
rtf
=
get_rtf_text
(
editor
,
lpchrg
);
InitFormatEtc
(
obj
->
fmtetc
[
1
],
cfRTF
,
TYMED_HGLOBAL
);
}
...
...
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