From 5b5ab3b51f078a09da028d37f50cc578d65cb6ad Mon Sep 17 00:00:00 2001
From: Johannes Anderwald <johannes.anderwald@reactos.org>
Date: Tue, 2 Mar 2010 16:48:28 +0000
Subject: [PATCH] [PORTCLS] - Add support for IPort interface

svn path=/trunk/; revision=45760
---
 .../drivers/wdm/audio/backpln/portcls/port_wavepci.cpp   | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp b/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp
index 3122dfb661b..81d6ed9bfbf 100644
--- a/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp
+++ b/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp
@@ -161,8 +161,9 @@ CPortWavePci::QueryInterface(
 
     DPRINT("IPortWavePci_fnQueryInterface entered\n");
 
-    if (IsEqualGUIDAligned(refiid, IID_IPortWavePci) || 
-        IsEqualGUIDAligned(refiid, IID_IUnknown))
+    if (IsEqualGUIDAligned(refiid, IID_IPortWavePci) ||
+        IsEqualGUIDAligned(refiid, IID_IUnknown) ||
+        IsEqualGUIDAligned(refiid, IID_IPort))
     {
         *Output = PVOID(PPORTWAVEPCI(this));
         PUNKNOWN(*Output)->AddRef();
@@ -171,7 +172,7 @@ CPortWavePci::QueryInterface(
     else if (IsEqualGUIDAligned(refiid, IID_IServiceSink))
     {
         *Output = PVOID(PSERVICESINK(this));
-		PUNKNOWN(*Output)->AddRef();
+        PUNKNOWN(*Output)->AddRef();
         return STATUS_SUCCESS;
     }
     else if (IsEqualGUIDAligned(refiid, IID_IPortEvents))
@@ -183,7 +184,7 @@ CPortWavePci::QueryInterface(
     else if (IsEqualGUIDAligned(refiid, IID_ISubdevice))
     {
         *Output = PVOID(PSUBDEVICE(this));
-		PUNKNOWN(*Output)->AddRef();
+        PUNKNOWN(*Output)->AddRef();
         return STATUS_SUCCESS;
     }
     else if (IsEqualGUIDAligned(refiid, IID_IPortClsVersion))