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

This commit is contained in:
Huw Davies 2008-10-20 14:48:38 +01:00 committed by Alexandre Julliard
parent f2cf617f00
commit 5ba96d7ae1
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}