quartz: Fix return value of DSoundRender_GetState.

Gerald Pfeifer gerald at pfeifer.com
Thu May 13 20:10:32 CDT 2010


We're setting hr in this function depending on the outcome of 
WaitForSingleObject only to never use it.  Not sure this is the
right way of addressing it?  Or should we just remove hr altogether?

Gerald
---
 dlls/quartz/dsoundrender.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 1d87a7f..115577c 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -677,7 +677,7 @@ static HRESULT WINAPI DSoundRender_GetState(IBaseFilter * iface, DWORD dwMilliSe
     }
     LeaveCriticalSection(&This->csFilter);
 
-    return S_OK;
+    return hr;
 }
 
 static HRESULT WINAPI DSoundRender_SetSyncSource(IBaseFilter * iface, IReferenceClock *pClock)
-- 
1.6.6.2



More information about the wine-patches mailing list