ole32/tests: Fix crashes in PropVariantClear tests under win64.
This commit is contained in:
parent
3fe0a31d14
commit
f35078ee40
|
@ -196,8 +196,13 @@ static void test_validtypes(void)
|
|||
VARTYPE vt;
|
||||
|
||||
memset(&propvar, 0x55, sizeof(propvar));
|
||||
if (i == VT_RECORD || i == VT_BLOB || i == VT_BLOB_OBJECT)
|
||||
U(propvar).uhVal.QuadPart = 0;
|
||||
if (i == VT_RECORD)
|
||||
memset(&propvar, 0, sizeof(propvar));
|
||||
else if (i == VT_BLOB || i == VT_BLOB_OBJECT)
|
||||
{
|
||||
U(propvar).blob.cbSize = 0;
|
||||
U(propvar).blob.pBlobData = NULL;
|
||||
}
|
||||
else
|
||||
U(propvar).pszVal = NULL;
|
||||
vt = propvar.vt = i;
|
||||
|
|
Loading…
Reference in New Issue