Aaryaman Vasishta : d3drm: Move AddRef from frame2->frame3.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 30 07:19:30 CDT 2015


Module: wine
Branch: master
Commit: 1e3737f15266970e4d67ab7761e786e412e3e166
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1e3737f15266970e4d67ab7761e786e412e3e166

Author: Aaryaman Vasishta <jem456.vasishta at gmail.com>
Date:   Sun Apr 26 17:07:00 2015 +0530

d3drm: Move AddRef from frame2->frame3.

---

 dlls/d3drm/frame.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/d3drm/frame.c b/dlls/d3drm/frame.c
index 6737cc4..22daec4 100644
--- a/dlls/d3drm/frame.c
+++ b/dlls/d3drm/frame.c
@@ -476,11 +476,10 @@ static HRESULT WINAPI d3drm_frame2_QueryInterface(IDirect3DRMFrame2 *iface, REFI
 static ULONG WINAPI d3drm_frame2_AddRef(IDirect3DRMFrame2 *iface)
 {
     struct d3drm_frame *frame = impl_from_IDirect3DRMFrame2(iface);
-    ULONG refcount = InterlockedIncrement(&frame->ref);
 
-    TRACE("%p increasing refcount to %u.\n", iface, refcount);
+    TRACE("iface %p.\n", iface);
 
-    return refcount;
+    return IDirect3DRMFrame3_AddRef(&frame->IDirect3DRMFrame3_iface);
 }
 
 static ULONG WINAPI d3drm_frame2_Release(IDirect3DRMFrame2 *iface)
@@ -1239,10 +1238,11 @@ static HRESULT WINAPI d3drm_frame3_QueryInterface(IDirect3DRMFrame3 *iface, REFI
 static ULONG WINAPI d3drm_frame3_AddRef(IDirect3DRMFrame3 *iface)
 {
     struct d3drm_frame *frame = impl_from_IDirect3DRMFrame3(iface);
+    ULONG refcount = InterlockedIncrement(&frame->ref);
 
-    TRACE("iface %p.\n", iface);
+    TRACE("%p increasing refcount to %u.\n", iface, refcount);
 
-    return d3drm_frame2_AddRef(&frame->IDirect3DRMFrame2_iface);
+    return refcount;
 }
 
 static ULONG WINAPI d3drm_frame3_Release(IDirect3DRMFrame3 *iface)




More information about the wine-cvs mailing list