Commit 26c0b76b authored by Francois Jacques's avatar Francois Jacques Committed by Alexandre Julliard

Implemented VT_EMPTY to VT_BSTR type coercion.

parent e3527ccb
......@@ -1447,6 +1447,12 @@ static HRESULT Coerce( VARIANTARG* pd, LCID lcid, ULONG dwFlags, VARIANTARG* ps,
case( VT_BSTR ):
switch( vtFrom )
{
case( VT_EMPTY ):
if ((pd->u.bstrVal = SysAllocStringLen(NULL, 0)))
res = S_OK;
else
res = E_OUTOFMEMORY;
break;
case( VT_I1 ):
res = VarBstrFromI1( ps->u.cVal, lcid, dwFlags, &(pd->u.bstrVal) );
break;
......
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