quartz/tests: Fix a few failures on Win95 and NT4.

This commit is contained in:
Paul Vriens 2008-11-13 18:07:01 +01:00 committed by Alexandre Julliard
parent f8b8478f91
commit 36c40e53e0
1 changed files with 11 additions and 1 deletions

View File

@ -95,7 +95,17 @@ static void test_aggregation(const CLSID clsidOuter, const CLSID clsidInner,
/* these QueryInterface calls should work */ /* these QueryInterface calls should work */
QI_SUCCEED(pUnkOuter, iidOuter, pUnkAggregator); QI_SUCCEED(pUnkOuter, iidOuter, pUnkAggregator);
QI_SUCCEED(pUnkOuter, IID_IUnknown, pUnkOuterTest); QI_SUCCEED(pUnkOuter, IID_IUnknown, pUnkOuterTest);
/* IGraphConfig interface comes with DirectShow 9 */
if(IsEqualGUID(&IID_IGraphConfig, &iidInner))
{
hr = IUnknown_QueryInterface(pUnkInner, &iidInner, (LPVOID*)&pUnkAggregatee);
ok(hr == S_OK || broken(hr == E_NOINTERFACE), "IUnknown_QueryInterface returned %x\n", hr);
ok(pUnkAggregatee != NULL || broken(!pUnkAggregatee), "Pointer is NULL\n");
}
else
{
QI_SUCCEED(pUnkInner, iidInner, pUnkAggregatee); QI_SUCCEED(pUnkInner, iidInner, pUnkAggregatee);
}
QI_SUCCEED(pUnkInner, IID_IUnknown, pUnkInnerTest); QI_SUCCEED(pUnkInner, IID_IUnknown, pUnkInnerTest);
if (!pUnkAggregator || !pUnkOuterTest || !pUnkAggregatee if (!pUnkAggregator || !pUnkOuterTest || !pUnkAggregatee