Commit 71c3bf2b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ole32: Read vt into a DWORD, as propvariant->vt is 16 bit (Coverity).

parent 1e24f7da
......@@ -1045,11 +1045,13 @@ static HRESULT PropertyStorage_ReadProperty(PROPVARIANT *prop, const BYTE *data,
UINT codepage, void* (WINAPI *allocate)(void *this, ULONG size), void *allocate_data)
{
HRESULT hr = S_OK;
DWORD vt;
assert(prop);
assert(data);
StorageUtl_ReadDWord(data, 0, (DWORD *)&prop->vt);
StorageUtl_ReadDWord(data, 0, &vt);
data += sizeof(DWORD);
prop->vt = vt;
switch (prop->vt)
{
case VT_EMPTY:
......
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