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
25d7ecde
Commit
25d7ecde
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: Add support for getting stream based objects from a flushed clipboard.
parent
f8a9ca2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
clipboard.c
dlls/ole32/clipboard.c
+29
-0
No files found.
dlls/ole32/clipboard.c
View file @
25d7ecde
...
@@ -959,6 +959,33 @@ static HRESULT get_stgmed_for_global(HGLOBAL h, STGMEDIUM *med)
...
@@ -959,6 +959,33 @@ static HRESULT get_stgmed_for_global(HGLOBAL h, STGMEDIUM *med)
}
}
/************************************************************************
/************************************************************************
* get_stgmed_for_stream
*
* Returns a stg medium with a stream based on the handle
*/
static
HRESULT
get_stgmed_for_stream
(
HGLOBAL
h
,
STGMEDIUM
*
med
)
{
HRESULT
hr
;
HGLOBAL
dst
;
med
->
pUnkForRelease
=
NULL
;
med
->
tymed
=
TYMED_NULL
;
hr
=
dup_global_mem
(
h
,
GMEM_MOVEABLE
,
&
dst
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
CreateStreamOnHGlobal
(
dst
,
TRUE
,
&
med
->
u
.
pstm
);
if
(
FAILED
(
hr
))
{
GlobalFree
(
dst
);
return
hr
;
}
med
->
tymed
=
TYMED_ISTREAM
;
return
hr
;
}
/************************************************************************
* snapshot_GetData
* snapshot_GetData
*/
*/
static
HRESULT
WINAPI
snapshot_GetData
(
IDataObject
*
iface
,
FORMATETC
*
fmt
,
static
HRESULT
WINAPI
snapshot_GetData
(
IDataObject
*
iface
,
FORMATETC
*
fmt
,
...
@@ -1005,6 +1032,8 @@ static HRESULT WINAPI snapshot_GetData(IDataObject *iface, FORMATETC *fmt,
...
@@ -1005,6 +1032,8 @@ static HRESULT WINAPI snapshot_GetData(IDataObject *iface, FORMATETC *fmt,
if
(
mask
&
TYMED_HGLOBAL
)
if
(
mask
&
TYMED_HGLOBAL
)
hr
=
get_stgmed_for_global
(
h
,
med
);
hr
=
get_stgmed_for_global
(
h
,
med
);
else
if
(
mask
&
TYMED_ISTREAM
)
hr
=
get_stgmed_for_stream
(
h
,
med
);
else
else
{
{
FIXME
(
"Unhandled tymed - emum tymed %x req tymed %x
\n
"
,
entry
->
fmtetc
.
tymed
,
fmt
->
tymed
);
FIXME
(
"Unhandled tymed - emum tymed %x req tymed %x
\n
"
,
entry
->
fmtetc
.
tymed
,
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