Commit 54c8fee9 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Implement coercion to VT_UNKNOWN from VT_DISPATCH.

parent 77f8e5fe
...@@ -1567,6 +1567,18 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps, ...@@ -1567,6 +1567,18 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
} }
break; break;
case( VT_UNKNOWN ):
if (vtFrom == VT_DISPATCH)
{
res = IDispatch_QueryInterface(V_DISPATCH(ps), &IID_IUnknown, (LPVOID*)&V_UNKNOWN(pd));
}
else
{
res = DISP_E_TYPEMISMATCH;
FIXME("Coercion from %d to %d\n", vtFrom, vt );
}
break;
default: default:
res = DISP_E_TYPEMISMATCH; res = DISP_E_TYPEMISMATCH;
FIXME("Coercion from %d to %d\n", vtFrom, vt ); FIXME("Coercion from %d to %d\n", vtFrom, vt );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment