mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
propsys: PropVariantClear does not clear on uninitialized values (Coverity).
This commit is contained in:
parent
d182a123d1
commit
1104678b40
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue