[PATCH] oleaut32: Return a valid size for VT_CLSID
Huw Davies
huw at codeweavers.com
Mon Jul 16 02:48:54 CDT 2018
On Fri, Jul 13, 2018 at 04:39:50AM +0000, Alistair Leslie-Hughes wrote:
> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
> ---
> dlls/oleaut32/usrmarshal.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c
> index da524c8..5986bab 100644
> --- a/dlls/oleaut32/usrmarshal.c
> +++ b/dlls/oleaut32/usrmarshal.c
> @@ -245,6 +245,8 @@ unsigned int get_type_size(ULONG *pFlags, VARTYPE vt)
> return sizeof(ULONG);
> case VT_VARIANT:
> return sizeof(VARIANT);
> + case VT_CLSID :
> + return sizeof(GUID);
> case VT_UNKNOWN:
> case VT_DISPATCH:
> case VT_RECORD:
This is strange as the VARIANT union doesn't have a CLSID/GUID element.
Huw.
More information about the wine-devel
mailing list