ole32: Fallback to parsing the Presentation streams ff parsing of the "CONTENTS"...
commit421b3ca3eb16a3ca254b615f6c7dfc1619c973e7
authorDmitry Timoshkov <dmitry@baikal.ru>
Fri, 23 Oct 2015 10:32:22 +0000 (23 18:32 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 29 Oct 2015 12:20:07 +0000 (29 21:20 +0900)
tree100ce01f5d88a0808a2236e614ab4b6f9e7da402
parent356e46a1ef9f866f4a548674b4811a98d1b1847c
ole32: Fallback to parsing the Presentation streams ff parsing of the "CONTENTS" stream fails.

I have an application that tries to load an existing object from the file
using OleLoad() and fails because the "CONTENTS" stream has clsid set to
"Microsoft Photo Editor 3.0 Picture". I've dumped the contents of the OLE
storage to disk for investigation, and under Windows (where Microsoft Photo
Editor is not installed, and registry has no traces of its class guids)
OleLoad() is able to load objects from this storage, and after that OleDraw()
successfully paints the object contents on the screen. I've written an
application to play with the dumped storage, and under Windows the "CONTENTS"
stream also can't be loaded, but the storage also contains the "OlePres000"
stream which contains an object in CF_METAFILEPICT format, and this one can be
loaded and painted.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ole32/datacache.c