oledb32: Fix IDBProperties::GetProperties test on Windows.

This commit is contained in:
Rob Shearman 2009-11-12 00:30:26 +00:00 committed by Alexandre Julliard
parent 564c619ae3
commit b81b24f9da
1 changed files with 4 additions and 2 deletions

View File

@ -165,7 +165,9 @@ static HRESULT WINAPI Test_DBProperties_GetProperties(
DBPROPSET **prgPropertySets)
{
ok(cPropertyIDSets == 0, "Expected cPropertyIDSets to be 0 instead of %d\n", cPropertyIDSets);
ok(*pcPropertySets == 1, "Expected *pcPropertySets to be 1 instead of %d\n", *pcPropertySets);
todo_wine
ok(*pcPropertySets == 0, "Expected *pcPropertySets to be 0 instead of %d\n", *pcPropertySets);
*pcPropertySets = 1;
prgPropertySets[0] = CoTaskMemAlloc(sizeof(DBPROPSET));
prgPropertySets[0]->rgProperties = CoTaskMemAlloc(sizeof(DBPROP));
prgPropertySets[0]->rgProperties[0].dwPropertyID = TEST_PROPID;
@ -241,7 +243,7 @@ static void test_IDBProperties(void)
propset_count = 1;
hr = IDBProperties_GetProperties(pProxy, 0, NULL, &propset_count, &propsets);
ok_ole_success(hr, "IDBProperties_GetProperties");
ok(hr == S_OK, "IDBProperties_GetProperties failed with error 0x%08x", hr);
ok(propset_count == 1, "Expected propset_count of 1 but got %d\n", propset_count);
ok(propsets->rgProperties[0].dwPropertyID == TEST_PROPID, "Expected property ID of 0x%x, but got 0x%x\n", TEST_PROPID, propsets->rgProperties[0].dwPropertyID);