Zebediah Figura : strmbase: Add default implementations of IUnknown methods for IVideoWindow.

Alexandre Julliard julliard at winehq.org
Wed Jun 12 16:44:25 CDT 2019


Module: wine
Branch: master
Commit: 89cf4cba6e678474e91a3e531b29117d8cef9319
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=89cf4cba6e678474e91a3e531b29117d8cef9319

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Jun 11 18:54:38 2019 -0500

strmbase: Add default implementations of IUnknown methods for IVideoWindow.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/strmbase/window.c  | 18 ++++++++++++++++++
 include/wine/strmbase.h |  4 ++++
 2 files changed, 22 insertions(+)

diff --git a/dlls/strmbase/window.c b/dlls/strmbase/window.c
index eea45aa..1ca06f7 100644
--- a/dlls/strmbase/window.c
+++ b/dlls/strmbase/window.c
@@ -217,6 +217,24 @@ HRESULT WINAPI BaseControlWindow_Destroy(BaseControlWindow *pControlWindow)
     return S_OK;
 }
 
+HRESULT WINAPI BaseControlWindowImpl_QueryInterface(IVideoWindow *iface, REFIID iid, void **out)
+{
+    BaseControlWindow *window = impl_from_IVideoWindow(iface);
+    return IUnknown_QueryInterface(window->pFilter->outer_unk, iid, out);
+}
+
+ULONG WINAPI BaseControlWindowImpl_AddRef(IVideoWindow *iface)
+{
+    BaseControlWindow *window = impl_from_IVideoWindow(iface);
+    return IUnknown_AddRef(window->pFilter->outer_unk);
+}
+
+ULONG WINAPI BaseControlWindowImpl_Release(IVideoWindow *iface)
+{
+    BaseControlWindow *window = impl_from_IVideoWindow(iface);
+    return IUnknown_Release(window->pFilter->outer_unk);
+}
+
 HRESULT WINAPI BaseControlWindowImpl_GetTypeInfoCount(IVideoWindow *iface, UINT *count)
 {
     TRACE("iface %p, count %p.\n", iface, count);
diff --git a/include/wine/strmbase.h b/include/wine/strmbase.h
index a7dda2e..2833f5e 100644
--- a/include/wine/strmbase.h
+++ b/include/wine/strmbase.h
@@ -430,6 +430,10 @@ HRESULT WINAPI BaseControlWindow_Init(BaseControlWindow *pControlWindow, const I
 HRESULT WINAPI BaseControlWindow_Destroy(BaseControlWindow *pControlWindow);
 
 BOOL WINAPI BaseControlWindowImpl_PossiblyEatMessage(BaseWindow *This, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+HRESULT WINAPI BaseControlWindowImpl_QueryInterface(IVideoWindow *iface, REFIID iid, void **out);
+ULONG WINAPI BaseControlWindowImpl_AddRef(IVideoWindow *iface);
+ULONG WINAPI BaseControlWindowImpl_Release(IVideoWindow *iface);
 HRESULT WINAPI BaseControlWindowImpl_GetTypeInfoCount(IVideoWindow *iface, UINT*pctinfo);
 HRESULT WINAPI BaseControlWindowImpl_GetTypeInfo(IVideoWindow *iface, UINT iTInfo, LCID lcid, ITypeInfo**ppTInfo);
 HRESULT WINAPI BaseControlWindowImpl_GetIDsOfNames(IVideoWindow *iface, REFIID riid, LPOLESTR*rgszNames, UINT cNames, LCID lcid, DISPID*rgDispId);




More information about the wine-cvs mailing list