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
5c97db9d
Commit
5c97db9d
authored
Jun 22, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jun 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add support for retrieving enhanced metafiles.
parent
d5d3efd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
clipboard.c
dlls/ole32/clipboard.c
+18
-0
No files found.
dlls/ole32/clipboard.c
View file @
5c97db9d
...
...
@@ -1133,6 +1133,22 @@ static HRESULT get_stgmed_for_storage(HGLOBAL h, STGMEDIUM *med)
return
hr
;
}
/************************************************************************
* get_stgmed_for_emf
*
* Returns a stg medium with an enhanced metafile based on the handle
*/
static
HRESULT
get_stgmed_for_emf
(
HENHMETAFILE
hemf
,
STGMEDIUM
*
med
)
{
med
->
pUnkForRelease
=
NULL
;
med
->
tymed
=
TYMED_NULL
;
med
->
u
.
hEnhMetaFile
=
CopyEnhMetaFileW
(
hemf
,
NULL
);
if
(
!
med
->
u
.
hEnhMetaFile
)
return
E_OUTOFMEMORY
;
med
->
tymed
=
TYMED_ENHMF
;
return
S_OK
;
}
static
inline
BOOL
string_off_equal
(
const
DVTARGETDEVICE
*
t1
,
WORD
off1
,
const
DVTARGETDEVICE
*
t2
,
WORD
off2
)
{
const
WCHAR
*
str1
,
*
str2
;
...
...
@@ -1222,6 +1238,8 @@ static HRESULT WINAPI snapshot_GetData(IDataObject *iface, FORMATETC *fmt,
hr
=
get_stgmed_for_global
(
h
,
med
);
else
if
(
mask
&
TYMED_ISTREAM
)
hr
=
get_stgmed_for_stream
(
h
,
med
);
else
if
(
mask
&
TYMED_ENHMF
)
hr
=
get_stgmed_for_emf
((
HENHMETAFILE
)
h
,
med
);
else
{
FIXME
(
"Unhandled tymed - mask %x req tymed %x
\n
"
,
mask
,
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