devenum: Update type when reading binary data to VT_EMPTY variant.

This commit is contained in:
Alexander Dorofeyev 2008-06-24 16:45:16 +03:00 committed by Alexandre Julliard
parent 2d8f7268ab
commit cff08308d0
1 changed files with 4 additions and 1 deletions

View File

@ -173,9 +173,12 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
switch (V_VT(pVar))
{
case VT_EMPTY:
V_VT(pVar) = VT_ARRAY | VT_UI1;
/* fall through */
case VT_ARRAY | VT_UI1:
if (!(V_UNION(pVar, parray) = SafeArrayCreate(VT_UI1, 1, &bound)))
res = E_OUTOFMEMORY;
else
res = S_OK;
break;
}