[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [1/2] ole32: Accept TYMED_FILE as a possible source of CF_METAFILEPICT format.
From: Huw Davies <huw () codeweavers ! com>
Date: 2015-10-30 13:40:35
Message-ID: 54A93FBD-8516-40F8-BA14-1491F7B4EE81 () codeweavers ! com
[Download RAW message or body]
On 30 Oct 2015, at 06:07, Dmitry Timoshkov wrote:
> Huw Davies <huw@codeweavers.com> wrote:
>>
>> This should be easy enough to test. Create a stand-alone data cache
>> ( using CreateDataCache() ), then call IOleCache_Cache with the
>> relevant fmtetc.
>
> Ufortunately it's not that simple. IOleCache_Cache() refuses to accept
> FORMATETC for CF_METAFILEPICT with medium set to TYMED_FILE, and both
> IOleCache_SetData() and IOleObject_SetData() don't accept STGMEDIUM set
> to TYMED_FILE either (with properly initialized lpszFileName pointing to
> a valid metafile). I have no idea how an existing storage may have medium
> set to TYMED_FILE, or how to set it for testing purposes besides manually
> patching the storage, any ideas?
In that case you'll have to create the stream by hand and try to load it
(and also fix your patch so that IOleCache_* don't end up accepting
TYMED_FILE).
Huw.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic