[PATCH 1/4] oleaut32: Fix TypeLibCount for SLTG_OtherTypeInfo
Huw Davies
huw at codeweavers.com
Thu Jun 11 06:59:53 CDT 2020
On Thu, Jun 11, 2020 at 01:10:43PM +0200, Vijay Kiran Kamuju wrote:
> Based on patch by Sebastian Lackner <sebastian at fds-team.de>
>
> From: Dmitry Timoshkov <dmitry at baikal.ru>
> Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
> 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 <sebastian at fds-team.de>
>
> From: Dmitry Timoshkov <dmitry at baikal.ru>
> Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
> ---
> 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.
More information about the wine-devel
mailing list