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

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2018-07-21 13:50:11 +02:00 committed by Alexandre Julliard
parent 1e24f7da55
commit 71c3bf2bf8
1 changed files with 3 additions and 1 deletions

View File

@ -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: