Aaryaman Vasishta : d3drm: Move QueryInterface from frame2->frame3.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Apr 30 07:19:30 CDT 2015
Module: wine
Branch: master
Commit: b8b7a72f26d731498a22c05c79b81d25b8d58108
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b8b7a72f26d731498a22c05c79b81d25b8d58108
Author: Aaryaman Vasishta <jem456.vasishta at gmail.com>
Date: Sun Apr 26 17:06:59 2015 +0530
d3drm: Move QueryInterface from frame2->frame3.
---
dlls/d3drm/frame.c | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/dlls/d3drm/frame.c b/dlls/d3drm/frame.c
index 39c2e7b..6737cc4 100644
--- a/dlls/d3drm/frame.c
+++ b/dlls/d3drm/frame.c
@@ -470,27 +470,7 @@ static HRESULT WINAPI d3drm_frame2_QueryInterface(IDirect3DRMFrame2 *iface, REFI
TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
- if (IsEqualGUID(riid, &IID_IDirect3DRMFrame2)
- || IsEqualGUID(riid, &IID_IDirect3DRMFrame)
- || IsEqualGUID(riid, &IID_IDirect3DRMObject)
- || IsEqualGUID(riid, &IID_IDirect3DRMVisual)
- || IsEqualGUID(riid, &IID_IUnknown))
- {
- *out = &frame->IDirect3DRMFrame2_iface;
- }
- else if (IsEqualGUID(riid, &IID_IDirect3DRMFrame3))
- {
- *out = &frame->IDirect3DRMFrame3_iface;
- }
- else
- {
- *out = NULL;
- WARN("%s not implemented, returning CLASS_E_CLASSNOTAVAILABLE.\n", debugstr_guid(riid));
- return CLASS_E_CLASSNOTAVAILABLE;
- }
-
- IUnknown_AddRef((IUnknown *)*out);
- return S_OK;
+ return IDirect3DRMFrame3_QueryInterface(&frame->IDirect3DRMFrame3_iface, riid, out);
}
static ULONG WINAPI d3drm_frame2_AddRef(IDirect3DRMFrame2 *iface)
@@ -1233,7 +1213,27 @@ static HRESULT WINAPI d3drm_frame3_QueryInterface(IDirect3DRMFrame3 *iface, REFI
TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
- return d3drm_frame2_QueryInterface(&frame->IDirect3DRMFrame2_iface, riid, out);
+ if (IsEqualGUID(riid, &IID_IDirect3DRMFrame2)
+ || IsEqualGUID(riid, &IID_IDirect3DRMFrame)
+ || IsEqualGUID(riid, &IID_IDirect3DRMObject)
+ || IsEqualGUID(riid, &IID_IDirect3DRMVisual)
+ || IsEqualGUID(riid, &IID_IUnknown))
+ {
+ *out = &frame->IDirect3DRMFrame2_iface;
+ }
+ else if (IsEqualGUID(riid, &IID_IDirect3DRMFrame3))
+ {
+ *out = &frame->IDirect3DRMFrame3_iface;
+ }
+ else
+ {
+ *out = NULL;
+ WARN("%s not implemented, returning CLASS_E_CLASSNOTAVAILABLE.\n", debugstr_guid(riid));
+ return CLASS_E_CLASSNOTAVAILABLE;
+ }
+
+ IUnknown_AddRef((IUnknown *)*out);
+ return S_OK;
}
static ULONG WINAPI d3drm_frame3_AddRef(IDirect3DRMFrame3 *iface)
More information about the wine-cvs
mailing list