ole32: Handle VT_BLOB in PropertyStorage_ReadProperty.

This commit is contained in:
Marcus Meissner 2011-12-04 23:52:44 +01:00 committed by Alexandre Julliard
parent ea151da3cd
commit 48ae8e9ced
1 changed files with 16 additions and 0 deletions

View File

@ -1111,6 +1111,22 @@ static HRESULT PropertyStorage_ReadProperty(PropertyStorage_impl *This,
}
break;
}
case VT_BLOB:
{
DWORD count;
StorageUtl_ReadDWord(data, 0, &count);
prop->u.blob.cbSize = count;
prop->u.blob.pBlobData = CoTaskMemAlloc(count);
if (prop->u.blob.pBlobData)
{
memcpy(prop->u.blob.pBlobData, data + sizeof(DWORD), count);
TRACE("Read blob value of size %d\n", count);
}
else
hr = STG_E_INSUFFICIENTMEMORY;
break;
}
case VT_LPWSTR:
{
DWORD count;