ole32: In the data cache, fmtetc->cfFormat and fmtetc->tymed can be 0 which means...
authorRob Shearman <rob@codeweavers.com>
Sat, 2 Dec 2006 18:16:53 +0000 (18:16 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 4 Dec 2006 12:51:06 +0000 (13:51 +0100)
commitca81b825be47b054069ad2f9070e7ec751db0826
tree238e2b510cb38e0b7282b7b448b9b86223f9e798
parentd37b669503ec73fde07f274f0ec97e69fd543d77
ole32: In the data cache, fmtetc->cfFormat and fmtetc->tymed can be 0 which means to match any clipformat/tymed.

Therefore, keep the clipformat of the data in the data_cf field.
Return an error from SetData if a non-zero clipformat hasn't been specified.
Write out stgmedium.tymed instead of fmtetc.tymed, which is guaranteed
to be non-zero if data has been set.
dlls/ole32/datacache.c