propsys: PropVariantClear does not clear on uninitialized values (Coverity).

This commit is contained in:
Marcus Meissner 2012-09-15 19:06:48 +02:00 committed by Alexandre Julliard
parent d182a123d1
commit 1104678b40

View file

@ -774,6 +774,11 @@ static void test_intconversions(void)
ULONGLONG ullval;
HRESULT hr;
propvar.vt = 0xdead;
hr = PropVariantClear(&propvar);
ok (FAILED(hr), "PropVariantClear fails on invalid vt.\n");
propvar.vt = VT_I8;
PropVariantClear(&propvar);
propvar.vt = VT_I8;