[PATCH 2/3] oleaut32: Use containing TypeLib's HelpFile in ITypeInfo::GetDocumentation

Andrew Eikum aeikum at codeweavers.com
Fri May 10 14:31:29 CDT 2013


---
 dlls/oleaut32/typelib.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 8434e56..b0a18b9 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -6898,7 +6898,7 @@ static HRESULT WINAPI ITypeInfo_fnGetDocumentation( ITypeInfo2 *iface,
         if(pdwHelpContext)
             *pdwHelpContext=This->dwHelpContext;
         if(pBstrHelpFile)
-            *pBstrHelpFile=SysAllocString(This->DocString);/* FIXME */
+            *pBstrHelpFile=SysAllocString(This->pTypeLib->HelpFile);
         return S_OK;
     }else {/* for a member */
         pFDesc = TLB_get_funcdesc_by_memberid(This->funcdescs, This->TypeAttr.cFuncs, memid);
@@ -6919,6 +6919,8 @@ static HRESULT WINAPI ITypeInfo_fnGetDocumentation( ITypeInfo2 *iface,
               *pBstrDocString=SysAllocString(pVDesc->HelpString);
             if(pdwHelpContext)
               *pdwHelpContext=pVDesc->HelpContext;
+            if(pBstrHelpFile)
+              *pBstrHelpFile = SysAllocString(This->pTypeLib->HelpFile);
             return S_OK;
         }
     }
-- 
1.8.2.2





More information about the wine-patches mailing list