Skip to content
Snippets Groups Projects
Commit 54c8fee9 authored by Ove Kåven's avatar Ove Kåven Committed by Alexandre Julliard
Browse files

Implement coercion to VT_UNKNOWN from VT_DISPATCH.

parent 77f8e5fe
No related branches found
No related tags found
No related merge requests found
......@@ -1567,6 +1567,18 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
}
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:
res = DISP_E_TYPEMISMATCH;
FIXME("Coercion from %d to %d\n", vtFrom, vt );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment