Christian Costa : d3drm: Simplify declaration of VTable members ( spotted by Dmitry Timoshkov).

Alexandre Julliard julliard at winehq.org
Thu Jan 14 11:33:33 CST 2010


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

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Tue Jan 12 09:54:30 2010 +0100

d3drm: Simplify declaration of VTable members (spotted by Dmitry Timoshkov).

---

 dlls/d3drm/d3drm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3drm/d3drm.c b/dlls/d3drm/d3drm.c
index a0d7d3f..4eed18b 100644
--- a/dlls/d3drm/d3drm.c
+++ b/dlls/d3drm/d3drm.c
@@ -34,7 +34,7 @@
 WINE_DEFAULT_DEBUG_CHANNEL(d3drm);
 
 typedef struct {
-    IDirect3DRM lpVtbl;
+    const IDirect3DRMVtbl *lpVtbl;
     LONG ref;
 } IDirect3DRMImpl;
 
@@ -53,7 +53,7 @@ HRESULT Direct3DRM_create(LPDIRECT3DRM* ppDirect3DRM)
         return E_OUTOFMEMORY;
     }
 
-    object->lpVtbl.lpVtbl = &Direct3DRM_Vtbl;
+    object->lpVtbl = &Direct3DRM_Vtbl;
     object->ref = 1;
 
     *ppDirect3DRM = (IDirect3DRM*)object;




More information about the wine-cvs mailing list