From: Huw Davies Subject: Re: [PATCH 1/4] oleaut32: Fix TypeLibCount for SLTG_OtherTypeInfo Message-Id: <20200611115953.GC6484@merlot.physics.ox.ac.uk> Date: Thu, 11 Jun 2020 12:59:53 +0100 In-Reply-To: References: On Thu, Jun 11, 2020 at 01:10:43PM +0200, Vijay Kiran Kamuju wrote: > Based on patch by Sebastian Lackner > > From: Dmitry Timoshkov > Signed-off-by: Vijay Kiran Kamuju > From f5c2552bae4d0a4c517ef54a8ac2159fdb3cf3ba Mon Sep 17 00:00:00 2001 > Date: Thu, 11 Jun 2020 12:59:34 +0200 > Subject: [PATCH 1/4] oleaut32: Fix TypeLibCount for SLTG_OtherTypeInfo > > Based on patch by Sebastian Lackner > > From: Dmitry Timoshkov > Signed-off-by: Vijay Kiran Kamuju > --- > dlls/oleaut32/typelib.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c > index f8d7136834..1f2c6e182c 100644 > --- a/dlls/oleaut32/typelib.c > +++ b/dlls/oleaut32/typelib.c > @@ -4472,6 +4472,8 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength) > len += 0x40; > > /* And now TypeInfoCount of SLTG_OtherTypeInfo */ > + pTypeLibImpl->TypeInfoCount = *(WORD *)((char *)pLibBlk + len); > + len += sizeof(WORD); > > pOtherTypeInfoBlks = heap_alloc_zero(sizeof(*pOtherTypeInfoBlks) * pTypeLibImpl->TypeInfoCount); It's more complicated than that. ->TypeInfoCount is set earlier on, should that be changed to a local variable or something? Also, there are still bits on [2/4] that aren't do to with help strings, e.g. the small_no and typekind change, and all the offset renumbering. Huw.