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:
parent
1e24f7da55
commit
71c3bf2bf8
|
@ -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)
|
UINT codepage, void* (WINAPI *allocate)(void *this, ULONG size), void *allocate_data)
|
||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
|
DWORD vt;
|
||||||
|
|
||||||
assert(prop);
|
assert(prop);
|
||||||
assert(data);
|
assert(data);
|
||||||
StorageUtl_ReadDWord(data, 0, (DWORD *)&prop->vt);
|
StorageUtl_ReadDWord(data, 0, &vt);
|
||||||
data += sizeof(DWORD);
|
data += sizeof(DWORD);
|
||||||
|
prop->vt = vt;
|
||||||
switch (prop->vt)
|
switch (prop->vt)
|
||||||
{
|
{
|
||||||
case VT_EMPTY:
|
case VT_EMPTY:
|
||||||
|
|
Loading…
Reference in New Issue