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
51385a98
Commit
51385a98
authored
Jun 19, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add support for rendering HENHMETAFILE clipboard objects.
parent
a3062414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
clipboard.c
dlls/ole32/clipboard.c
+28
-0
No files found.
dlls/ole32/clipboard.c
View file @
51385a98
...
...
@@ -744,6 +744,30 @@ static HRESULT get_data_from_global(IDataObject *data, FORMATETC *fmt, HGLOBAL *
return
hr
;
}
static
HRESULT
get_data_from_enhmetafile
(
IDataObject
*
data
,
FORMATETC
*
fmt
,
HGLOBAL
*
mem
)
{
HENHMETAFILE
copy
;
HRESULT
hr
;
FORMATETC
mem_fmt
;
STGMEDIUM
med
;
*
mem
=
NULL
;
mem_fmt
=
*
fmt
;
mem_fmt
.
tymed
=
TYMED_ENHMF
;
hr
=
IDataObject_GetData
(
data
,
&
mem_fmt
,
&
med
);
if
(
FAILED
(
hr
))
return
hr
;
copy
=
CopyEnhMetaFileW
(
med
.
u
.
hEnhMetaFile
,
NULL
);
if
(
copy
)
*
mem
=
(
HGLOBAL
)
copy
;
else
hr
=
E_FAIL
;
ReleaseStgMedium
(
&
med
);
return
hr
;
}
/***********************************************************************
* render_format
*
...
...
@@ -773,6 +797,10 @@ static HRESULT render_format(IDataObject *data, LPFORMATETC fmt)
{
hr
=
get_data_from_global
(
data
,
fmt
,
&
clip_data
);
}
else
if
(
fmt
->
tymed
&
TYMED_ENHMF
)
{
hr
=
get_data_from_enhmetafile
(
data
,
fmt
,
&
clip_data
);
}
else
{
FIXME
(
"Unhandled tymed %x
\n
"
,
fmt
->
tymed
);
...
...
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