[PORTCLS]

- Add support for IPort interface

svn path=/trunk/; revision=45760
This commit is contained in:
Johannes Anderwald 2010-03-02 16:48:28 +00:00
parent 26a4722d68
commit 5b5ab3b51f

View file

@ -161,8 +161,9 @@ CPortWavePci::QueryInterface(
DPRINT("IPortWavePci_fnQueryInterface entered\n"); DPRINT("IPortWavePci_fnQueryInterface entered\n");
if (IsEqualGUIDAligned(refiid, IID_IPortWavePci) || if (IsEqualGUIDAligned(refiid, IID_IPortWavePci) ||
IsEqualGUIDAligned(refiid, IID_IUnknown)) IsEqualGUIDAligned(refiid, IID_IUnknown) ||
IsEqualGUIDAligned(refiid, IID_IPort))
{ {
*Output = PVOID(PPORTWAVEPCI(this)); *Output = PVOID(PPORTWAVEPCI(this));
PUNKNOWN(*Output)->AddRef(); PUNKNOWN(*Output)->AddRef();
@ -171,7 +172,7 @@ CPortWavePci::QueryInterface(
else if (IsEqualGUIDAligned(refiid, IID_IServiceSink)) else if (IsEqualGUIDAligned(refiid, IID_IServiceSink))
{ {
*Output = PVOID(PSERVICESINK(this)); *Output = PVOID(PSERVICESINK(this));
PUNKNOWN(*Output)->AddRef(); PUNKNOWN(*Output)->AddRef();
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
else if (IsEqualGUIDAligned(refiid, IID_IPortEvents)) else if (IsEqualGUIDAligned(refiid, IID_IPortEvents))
@ -183,7 +184,7 @@ CPortWavePci::QueryInterface(
else if (IsEqualGUIDAligned(refiid, IID_ISubdevice)) else if (IsEqualGUIDAligned(refiid, IID_ISubdevice))
{ {
*Output = PVOID(PSUBDEVICE(this)); *Output = PVOID(PSUBDEVICE(this));
PUNKNOWN(*Output)->AddRef(); PUNKNOWN(*Output)->AddRef();
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion)) else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion))