From 5937ddd403502c0224ac5c56ff5992384e840c02 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 31 Oct 2008 12:29:10 +0000 Subject: [PATCH] ole32: Call the object's GetClassID if it's running. --- dlls/ole32/defaulthandler.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c index 833e6fd1ec1..6844ee86b3a 100644 --- a/dlls/ole32/defaulthandler.c +++ b/dlls/ole32/defaulthandler.c @@ -1520,9 +1520,17 @@ static HRESULT WINAPI DefaultHandler_IPersistStorage_GetClassID( IPersistStorage* iface, CLSID* clsid) { - DefaultHandler *This = impl_from_IPersistStorage(iface); + DefaultHandler *This = impl_from_IPersistStorage(iface); + HRESULT hr; + + TRACE("(%p)->(%p)\n", iface, clsid); - return IPersistStorage_GetClassID(This->dataCache_PersistStg, clsid); + if(object_is_running(This)) + hr = IPersistStorage_GetClassID(This->pPSDelegate, clsid); + else + hr = IPersistStorage_GetClassID(This->dataCache_PersistStg, clsid); + + return hr; } /************************************************************************ -- 2.11.4.GIT