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
53b74b0d
Commit
53b74b0d
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: Call GetClipboardData callback on cut/copy.
parent
33af76f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
editor.c
dlls/riched20/editor.c
+6
-3
No files found.
dlls/riched20/editor.c
View file @
53b74b0d
...
...
@@ -1767,11 +1767,14 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
case
WM_CUT
:
case
WM_COPY
:
{
LPDATAOBJECT
dataObj
;
LPDATAOBJECT
dataObj
=
NULL
;
CHARRANGE
range
;
HRESULT
hr
;
HRESULT
hr
=
S_OK
;
ME_GetSelection
(
editor
,
(
int
*
)
&
range
.
cpMin
,
(
int
*
)
&
range
.
cpMax
);
hr
=
ME_GetDataObject
(
editor
,
&
range
,
&
dataObj
);
if
(
editor
->
lpOleCallback
)
hr
=
IRichEditOleCallback_GetClipboardData
(
editor
->
lpOleCallback
,
&
range
,
RECO_COPY
,
&
dataObj
);
if
(
FAILED
(
hr
)
||
!
dataObj
)
hr
=
ME_GetDataObject
(
editor
,
&
range
,
&
dataObj
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
OleSetClipboard
(
dataObj
);
IDataObject_Release
(
dataObj
);
...
...
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