Commit f35078ee authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent 3fe0a31d
......@@ -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;
......
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