[PATCH] quartz: Don't cast from COM object to interface

Michael Stefaniuc mstefani at winehq.org
Mon Sep 2 05:18:35 CDT 2019


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
The second cast should go too but that requires exposing
struct QualityControlImpl in include/wine/strmbase.h .


 dlls/quartz/dsoundrender.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 6451f85b5a..3478f95f51 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -394,7 +394,7 @@ static HRESULT WINAPI DSoundRender_DoRenderSample(BaseRenderer *iface, IMediaSam
         q.Proportion = 1000;
         q.Late = jitter;
         q.TimeStamp = tStart;
-        IQualityControl_Notify((IQualityControl *)This->renderer.qcimpl, (IBaseFilter*)This, q);
+        IQualityControl_Notify((IQualityControl *)This->renderer.qcimpl, &This->renderer.filter.IBaseFilter_iface, q);
     }
     return hr;
 }
-- 
2.20.1




More information about the wine-devel mailing list