Commit cff08308 authored by Alexander Dorofeyev's avatar Alexander Dorofeyev Committed by Alexandre Julliard

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

parent 2d8f7268
......@@ -173,10 +173,13 @@ 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;
res = S_OK;
else
res = S_OK;
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