Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
83aa7eff
Commit
83aa7eff
authored
May 23, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Query support also for static storage formats.
parent
1ee773bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ole2impl.c
dlls/ole32/ole2impl.c
+13
-0
No files found.
dlls/ole32/ole2impl.c
View file @
83aa7eff
...
...
@@ -102,6 +102,8 @@ static inline void init_fmtetc(FORMATETC *fmt, CLIPFORMAT cf, TYMED tymed)
*/
static
HRESULT
get_storage
(
IDataObject
*
data
,
IStorage
*
stg
,
UINT
*
src_cf
)
{
static
const
UINT
fmt_id
[]
=
{
CF_METAFILEPICT
,
CF_BITMAP
,
CF_DIB
};
UINT
i
;
HRESULT
hr
;
FORMATETC
fmt
;
STGMEDIUM
med
;
...
...
@@ -132,6 +134,17 @@ static HRESULT get_storage(IDataObject *data, IStorage *stg, UINT *src_cf)
return
hr
;
}
for
(
i
=
0
;
i
<
sizeof
(
fmt_id
)
/
sizeof
(
fmt_id
[
0
]);
i
++
)
{
init_fmtetc
(
&
fmt
,
fmt_id
[
i
],
TYMED_ISTORAGE
);
hr
=
IDataObject_QueryGetData
(
data
,
&
fmt
);
if
(
SUCCEEDED
(
hr
))
{
*
src_cf
=
fmt_id
[
i
];
return
hr
;
}
}
/* IPersistStorage */
hr
=
IDataObject_QueryInterface
(
data
,
&
IID_IPersistStorage
,
(
void
**
)
&
persist
);
if
(
FAILED
(
hr
))
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