Marcus Meissner : propsys: PropVariantClear does not clear on uninitialized values (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Sep 17 14:06:31 CDT 2012
Module: wine
Branch: master
Commit: 1104678b4005223a94e056e8dbddf3c786ec4d17
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1104678b4005223a94e056e8dbddf3c786ec4d17
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Sep 15 19:06:48 2012 +0200
propsys: PropVariantClear does not clear on uninitialized values (Coverity).
---
dlls/propsys/tests/propsys.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/propsys/tests/propsys.c b/dlls/propsys/tests/propsys.c
index a18d6b1..df4b8d7 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;
More information about the wine-cvs
mailing list