msdasql: Fix use after free (Coverity).
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c8b0e5b138
commit
b5c4d178a0
|
@ -130,8 +130,8 @@ static void test_Properties(void)
|
||||||
|
|
||||||
hr = IDBProperties_GetProperties(props, 1, &propidlist, &propcnt, &propset);
|
hr = IDBProperties_GetProperties(props, 1, &propidlist, &propcnt, &propset);
|
||||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||||
ok(propidlist.cPropertyIDs == 14, "got %d\n", propinfoset->cPropertyInfos);
|
ok(propidlist.cPropertyIDs == 14, "got %d\n", propidlist.cPropertyIDs);
|
||||||
ok(propset->cProperties == 14, "got %d\n", propinfoset->cPropertyInfos);
|
ok(propset->cProperties == 14, "got %d\n", propset->cProperties);
|
||||||
|
|
||||||
for (i = 0; i < propidlist.cPropertyIDs; i++)
|
for (i = 0; i < propidlist.cPropertyIDs; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue