ole32/tests: Fix crashes in PropVariantClear tests under win64.

This commit is contained in:
Dmitry Timoshkov 2014-04-18 18:09:59 +09:00 committed by Alexandre Julliard
parent 3fe0a31d14
commit f35078ee40
1 changed files with 7 additions and 2 deletions

View File

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