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
18d413bb
Commit
18d413bb
authored
Apr 16, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: OleFlushClipboard should render all formats to the clipboard.
parent
9bacd00c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
29 deletions
+1
-29
clipboard.c
dlls/ole32/clipboard.c
+1
-29
No files found.
dlls/ole32/clipboard.c
View file @
18d413bb
...
...
@@ -1709,8 +1709,6 @@ HRESULT WINAPI OleGetClipboard(IDataObject **obj)
*/
HRESULT
WINAPI
OleFlushClipboard
(
void
)
{
IEnumFORMATETC
*
penumFormatetc
=
NULL
;
FORMATETC
rgelt
;
HRESULT
hr
;
ole_clipbrd
*
clipbrd
;
HWND
wnd
;
...
...
@@ -1728,38 +1726,12 @@ HRESULT WINAPI OleFlushClipboard(void)
if
(
!
OpenClipboard
(
wnd
))
return
CLIPBRD_E_CANT_OPEN
;
/*
* Render all HGLOBAL formats supported by the source into
* the windows clipboard.
*/
if
(
FAILED
(
hr
=
IDataObject_EnumFormatEtc
(
clipbrd
->
src_data
,
DATADIR_GET
,
&
penumFormatetc
)
))
goto
end
;
while
(
S_OK
==
IEnumFORMATETC_Next
(
penumFormatetc
,
1
,
&
rgelt
,
NULL
)
)
{
if
(
rgelt
.
tymed
==
TYMED_HGLOBAL
)
{
CHAR
szFmtName
[
80
];
TRACE
(
"(cfFormat=%d:%s)
\n
"
,
rgelt
.
cfFormat
,
GetClipboardFormatNameA
(
rgelt
.
cfFormat
,
szFmtName
,
sizeof
(
szFmtName
)
-
1
)
?
szFmtName
:
""
);
if
(
FAILED
(
render_format
(
clipbrd
->
src_data
,
&
rgelt
))
)
continue
;
}
}
IEnumFORMATETC_Release
(
penumFormatetc
);
SendMessageW
(
wnd
,
WM_RENDERALLFORMATS
,
0
,
0
);
hr
=
set_dataobject_format
(
NULL
);
set_src_dataobject
(
clipbrd
,
NULL
);
end:
if
(
!
CloseClipboard
()
)
hr
=
CLIPBRD_E_CANT_CLOSE
;
return
hr
;
...
...
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