[PATCH 4/6] oleaut32: TKIND_ALIAS improvements

Piotr Caban piotr.caban at gmail.com
Sat Aug 17 08:13:58 CDT 2013


On 08/16/13 21:40, Andrew Eikum wrote:
> @@ -8502,7 +8502,7 @@ static HRESULT WINAPI ICreateTypeLib2_fnCreateTypeInfo(ICreateTypeLib2 *iface,
>           info->cbSizeInstance = 2;
>           break;
>       case TKIND_ALIAS:
> -        info->cbSizeInstance = -0x75;
> +        info->cbSizeInstance = 4;
>           break;
>       default:
>           FIXME("unrecognized typekind %d\n", info->typekind);
>
cbSizeInstance and cbAligment value depends on alias type. As long as 
alias type is not set cbSizeInstance stores some strange values (-0x75 
is matching what one of native versions of dll stores there).

Both of these values should be set in SetTypeDescAlias function.



More information about the wine-devel mailing list