From c4bc53b10a531e389dc36fb29d1f308051f10b49 Mon Sep 17 00:00:00 2001
From: tatyana <[email protected]>
Date: Wed, 7 Nov 2012 12:24:50 +0400
Subject: [PATCH 5/5] oleaut32: If pointers (ppTLib or pIndex) are null, we
 simply ignore it (eterbug #8365)

---
 dlls/oleaut32/typelib2.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c
index 78995de..91a061a 100644
--- a/dlls/oleaut32/typelib2.c
+++ b/dlls/oleaut32/typelib2.c
@@ -3713,8 +3713,13 @@ static HRESULT WINAPI ITypeInfo2_fnGetContainingTypeLib(
 
     TRACE("(%p,%p,%p)\n", iface, ppTLib, pIndex);
 
+    if(ppTLib)
+    {
     *ppTLib = (ITypeLib *)&This->typelib->ITypeLib2_iface;
     ICreateTypeLib_AddRef((ICreateTypeLib*)This->typelib);
+    }
+
+    if(pIndex)
     *pIndex = This->typeinfo->typekind >> 16;
 
     return S_OK;
-- 
1.7.12.4



Reply via email to