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:
Alistair Leslie-Hughes 2021-11-08 21:29:11 +11:00 committed by Alexandre Julliard
parent c8b0e5b138
commit b5c4d178a0
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ static void test_Properties(void)
hr = IDBProperties_GetProperties(props, 1, &propidlist, &propcnt, &propset);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(propidlist.cPropertyIDs == 14, "got %d\n", propinfoset->cPropertyInfos);
ok(propset->cProperties == 14, "got %d\n", propinfoset->cPropertyInfos);
ok(propidlist.cPropertyIDs == 14, "got %d\n", propidlist.cPropertyIDs);
ok(propset->cProperties == 14, "got %d\n", propset->cProperties);
for (i = 0; i < propidlist.cPropertyIDs; i++)
{