Huw Davies : ole32: Call the object's own IOleObject_GetUserType() if the object is running.

Alexandre Julliard julliard at winehq.org
Tue Oct 21 07:07:04 CDT 2008


Module: wine
Branch: master
Commit: 5ba96d7ae1a5951887539f0906b265455449d9b0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5ba96d7ae1a5951887539f0906b265455449d9b0

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Oct 20 14:48:38 2008 +0100

ole32: Call the object's own IOleObject_GetUserType() if the object is running.

---

 dlls/ole32/defaulthandler.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c
index a744718..899ae41 100644
--- a/dlls/ole32/defaulthandler.c
+++ b/dlls/ole32/defaulthandler.c
@@ -689,6 +689,8 @@ static HRESULT WINAPI DefaultHandler_GetUserType(
   DefaultHandler *This = impl_from_IOleObject(iface);
 
   TRACE("(%p, %d, %p)\n", iface, dwFormOfType, pszUserType);
+  if (object_is_running(This))
+    return IOleObject_GetUserType(This->pOleDelegate, dwFormOfType, pszUserType);
 
   return OleRegGetUserType(&This->clsid, dwFormOfType, pszUserType);
 }




More information about the wine-cvs mailing list