mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
ole32: Handle VT_BLOB in PropertyStorage_ReadProperty.
This commit is contained in:
parent
ea151da3cd
commit
48ae8e9ced
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue