From 1104678b4005223a94e056e8dbddf3c786ec4d17 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 15 Sep 2012 19:06:48 +0200 Subject: [PATCH] propsys: PropVariantClear does not clear on uninitialized values (Coverity). --- dlls/propsys/tests/propsys.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/propsys/tests/propsys.c b/dlls/propsys/tests/propsys.c index a18d6b1b8ae..df4b8d7c375 100644 --- a/dlls/propsys/tests/propsys.c +++ b/dlls/propsys/tests/propsys.c @@ -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;