From b6a5d18946668ecda6a1270268a5478d38fbd379 Mon Sep 17 00:00:00 2001
From: tatyana <tatyana@etersoft.ru>
Date: Wed, 29 May 2013 11:27:57 +0400
Subject: [PATCH] Revert "oleaut32: Check pointer before writing (eterbug
 #8241)"

This reverts commit c2bf7914693fec04267c7491221c4966f021ead7.
---
 dlls/oleaut32/typelib2.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c
index 26c7677..354ec8a 100644
--- a/dlls/oleaut32/typelib2.c
+++ b/dlls/oleaut32/typelib2.c
@@ -3717,9 +3717,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetContainingTypeLib(
 
     *ppTLib = (ITypeLib *)&This->typelib->ITypeLib2_iface;
     ICreateTypeLib_AddRef((ICreateTypeLib*)This->typelib);
-
-    if(pIndex)
-        *pIndex = This->typeinfo->typekind >> 16;
+    *pIndex = This->typeinfo->typekind >> 16;
 
     return S_OK;
 }
-- 
1.8.1.6
