Commit 3138ba0d authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dx9_36: Fix AddRef and Release macros and add IID for ID3DXConstantTable.

parent 88b2892a
......@@ -112,6 +112,8 @@ typedef struct _D3DXCONSTANT_DESC
LPCVOID DefaultValue;
} D3DXCONSTANT_DESC, *LPD3DXCONSTANT_DESC;
DEFINE_GUID(IID_ID3DXConstantTable, 0x9dca3190, 0x38b9, 0x4fc3, 0x92, 0xe3, 0x39, 0xc6, 0xdd, 0xfb, 0x35, 0x8b);
#undef INTERFACE
#define INTERFACE ID3DXConstantTable
......@@ -151,8 +153,8 @@ DECLARE_INTERFACE_(ID3DXConstantTable, ID3DXBuffer)
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define ID3DXConstantTable_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define ID3DXConstantTable_AddRef(p) (p)->lpVtbl->AddRef(p,a)
#define ID3DXConstantTable_Release(p) (p)->lpVtbl->Release(p,a)
#define ID3DXConstantTable_AddRef(p) (p)->lpVtbl->AddRef(p)
#define ID3DXConstantTable_Release(p) (p)->lpVtbl->Release(p)
/*** ID3DXBuffer methods ***/
#define ID3DXConstantTable_GetBufferPointer(p) (p)->lpVtbl->GetBufferPointer(p)
#define ID3DXConstantTable_GetBufferSize(p) (p)->lpVtbl->GetBufferSize(p)
......@@ -181,8 +183,8 @@ DECLARE_INTERFACE_(ID3DXConstantTable, ID3DXBuffer)
#else
/*** IUnknown methods ***/
#define ID3DXConstantTable_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define ID3DXConstantTable_AddRef(p) (p)->AddRef(a)
#define ID3DXConstantTable_Release(p) (p)->Release(a)
#define ID3DXConstantTable_AddRef(p) (p)->AddRef()
#define ID3DXConstantTable_Release(p) (p)->Release()
/*** ID3DXBuffer methods ***/
#define ID3DXConstantTable_GetBufferPointer(p) (p)->GetBufferPointer()
#define ID3DXConstantTable_GetBufferSize(p) (p)->GetBufferSize()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment