From 53d01d2764d35a654038749770274d2d491cd23f Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 31 Aug 2006 17:20:02 +0100 Subject: [PATCH] ole32: DefaultHandler_GetData and DefaultHandler_QueryGetData should both defer to the real data object if the cached versions fail and we are running. --- dlls/ole32/defaulthandler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index 4158f508a77..a1af68e40de 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -972,6 +972,9 @@ static HRESULT WINAPI DefaultHandler_GetData( IDataObject_Release(cacheDataObject); + if (FAILED(hres) && This->pDataDelegate) + hres = IDataObject_GetData(This->pDataDelegate, pformatetcIn, pmedium); + return hres; } @@ -1015,6 +1018,9 @@ static HRESULT WINAPI DefaultHandler_QueryGetData( IDataObject_Release(cacheDataObject); + if (FAILED(hres) && This->pDataDelegate) + hres = IDataObject_QueryGetData(This->pDataDelegate, pformatetc); + return hres; }