Implemented VT_EMPTY to VT_BSTR type coercion.

This commit is contained in:
Francois Jacques 2000-11-25 01:20:37 +00:00 committed by Alexandre Julliard
parent e3527ccb1d
commit 26c0b76bf8
1 changed files with 6 additions and 0 deletions

View File

@ -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;