Commit 4625628e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Make some of the OLE interface vtables const.

parent 95b87814
...@@ -39,7 +39,7 @@ typedef struct { ...@@ -39,7 +39,7 @@ typedef struct {
ULONG ref; ULONG ref;
} IAMMultiMediaStreamImpl; } IAMMultiMediaStreamImpl;
static struct IAMMultiMediaStreamVtbl AM_Vtbl; static const struct IAMMultiMediaStreamVtbl AM_Vtbl;
HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj) HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj)
{ {
...@@ -247,7 +247,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Render(IAMMultiMediaStream* iface, ...@@ -247,7 +247,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Render(IAMMultiMediaStream* iface,
return E_NOTIMPL; return E_NOTIMPL;
} }
static IAMMultiMediaStreamVtbl AM_Vtbl = static const IAMMultiMediaStreamVtbl AM_Vtbl =
{ {
IAMMultiMediaStreamImpl_QueryInterface, IAMMultiMediaStreamImpl_QueryInterface,
IAMMultiMediaStreamImpl_AddRef, IAMMultiMediaStreamImpl_AddRef,
......
...@@ -141,7 +141,7 @@ static HRESULT WINAPI AMCF_LockServer(LPCLASSFACTORY iface,BOOL dolock) ...@@ -141,7 +141,7 @@ static HRESULT WINAPI AMCF_LockServer(LPCLASSFACTORY iface,BOOL dolock)
return S_OK; return S_OK;
} }
static IClassFactoryVtbl DSCF_Vtbl = static const IClassFactoryVtbl DSCF_Vtbl =
{ {
AMCF_QueryInterface, AMCF_QueryInterface,
AMCF_AddRef, AMCF_AddRef,
......
...@@ -78,7 +78,7 @@ typedef struct rep_list_str { ...@@ -78,7 +78,7 @@ typedef struct rep_list_str {
} rep_list; } rep_list;
typedef struct { typedef struct {
IRegistrarVtbl *lpVtbl; const IRegistrarVtbl *lpVtbl;
ULONG ref; ULONG ref;
rep_list *rep; rep_list *rep;
} Registrar; } Registrar;
...@@ -644,7 +644,7 @@ static HRESULT WINAPI Registrar_ResourceUnregister(IRegistrar* iface, LPCOLESTR ...@@ -644,7 +644,7 @@ static HRESULT WINAPI Registrar_ResourceUnregister(IRegistrar* iface, LPCOLESTR
return resource_register(This, resFileName, (LPOLESTR)nID, szType, FALSE); return resource_register(This, resFileName, (LPOLESTR)nID, szType, FALSE);
} }
static IRegistrarVtbl RegistrarVtbl = { static const IRegistrarVtbl RegistrarVtbl = {
Registrar_QueryInterface, Registrar_QueryInterface,
Registrar_AddRef, Registrar_AddRef,
Registrar_Release, Registrar_Release,
......
...@@ -54,7 +54,7 @@ static HRESULT WINAPI ACMStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp, ...@@ -54,7 +54,7 @@ static HRESULT WINAPI ACMStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp,
static HRESULT WINAPI ACMStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size); static HRESULT WINAPI ACMStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size);
static HRESULT WINAPI ACMStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen); static HRESULT WINAPI ACMStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen);
struct IAVIStreamVtbl iacmst = { static const struct IAVIStreamVtbl iacmst = {
ACMStream_fnQueryInterface, ACMStream_fnQueryInterface,
ACMStream_fnAddRef, ACMStream_fnAddRef,
ACMStream_fnRelease, ACMStream_fnRelease,
...@@ -73,7 +73,7 @@ struct IAVIStreamVtbl iacmst = { ...@@ -73,7 +73,7 @@ struct IAVIStreamVtbl iacmst = {
typedef struct _IAVIStreamImpl { typedef struct _IAVIStreamImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIStreamVtbl *lpVtbl; const IAVIStreamVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IAVIStream stuff */ /* IAVIStream stuff */
......
...@@ -69,7 +69,7 @@ static HRESULT WINAPI IAVIFile_fnReadData(IAVIFile*iface,DWORD ckid,LPVOID lpDat ...@@ -69,7 +69,7 @@ static HRESULT WINAPI IAVIFile_fnReadData(IAVIFile*iface,DWORD ckid,LPVOID lpDat
static HRESULT WINAPI IAVIFile_fnEndRecord(IAVIFile*iface); static HRESULT WINAPI IAVIFile_fnEndRecord(IAVIFile*iface);
static HRESULT WINAPI IAVIFile_fnDeleteStream(IAVIFile*iface,DWORD fccType,LONG lParam); static HRESULT WINAPI IAVIFile_fnDeleteStream(IAVIFile*iface,DWORD fccType,LONG lParam);
struct IAVIFileVtbl iavift = { static const struct IAVIFileVtbl iavift = {
IAVIFile_fnQueryInterface, IAVIFile_fnQueryInterface,
IAVIFile_fnAddRef, IAVIFile_fnAddRef,
IAVIFile_fnRelease, IAVIFile_fnRelease,
...@@ -92,7 +92,7 @@ static HRESULT WINAPI IPersistFile_fnSave(IPersistFile*iface,LPCOLESTR pszFileNa ...@@ -92,7 +92,7 @@ static HRESULT WINAPI IPersistFile_fnSave(IPersistFile*iface,LPCOLESTR pszFileNa
static HRESULT WINAPI IPersistFile_fnSaveCompleted(IPersistFile*iface,LPCOLESTR pszFileName); static HRESULT WINAPI IPersistFile_fnSaveCompleted(IPersistFile*iface,LPCOLESTR pszFileName);
static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile*iface,LPOLESTR*ppszFileName); static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile*iface,LPOLESTR*ppszFileName);
struct IPersistFileVtbl ipersistft = { static const struct IPersistFileVtbl ipersistft = {
IPersistFile_fnQueryInterface, IPersistFile_fnQueryInterface,
IPersistFile_fnAddRef, IPersistFile_fnAddRef,
IPersistFile_fnRelease, IPersistFile_fnRelease,
...@@ -119,7 +119,7 @@ static HRESULT WINAPI IAVIStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp ...@@ -119,7 +119,7 @@ static HRESULT WINAPI IAVIStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp
static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size); static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size);
static HRESULT WINAPI IAVIStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen); static HRESULT WINAPI IAVIStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen);
struct IAVIStreamVtbl iavist = { static const struct IAVIStreamVtbl iavist = {
IAVIStream_fnQueryInterface, IAVIStream_fnQueryInterface,
IAVIStream_fnAddRef, IAVIStream_fnAddRef,
IAVIStream_fnRelease, IAVIStream_fnRelease,
...@@ -140,7 +140,7 @@ typedef struct _IAVIFileImpl IAVIFileImpl; ...@@ -140,7 +140,7 @@ typedef struct _IAVIFileImpl IAVIFileImpl;
typedef struct _IPersistFileImpl { typedef struct _IPersistFileImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IPersistFileVtbl *lpVtbl; const IPersistFileVtbl *lpVtbl;
/* IPersistFile stuff */ /* IPersistFile stuff */
IAVIFileImpl *paf; IAVIFileImpl *paf;
...@@ -148,7 +148,7 @@ typedef struct _IPersistFileImpl { ...@@ -148,7 +148,7 @@ typedef struct _IPersistFileImpl {
typedef struct _IAVIStreamImpl { typedef struct _IAVIStreamImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIStreamVtbl *lpVtbl; const IAVIStreamVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IAVIStream stuff */ /* IAVIStream stuff */
...@@ -177,7 +177,7 @@ typedef struct _IAVIStreamImpl { ...@@ -177,7 +177,7 @@ typedef struct _IAVIStreamImpl {
struct _IAVIFileImpl { struct _IAVIFileImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIFileVtbl *lpVtbl; const IAVIFileVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IAVIFile stuff... */ /* IAVIFile stuff... */
......
...@@ -80,7 +80,7 @@ static HRESULT WINAPI IAVIEditStream_fnClone(IAVIEditStream*iface, ...@@ -80,7 +80,7 @@ static HRESULT WINAPI IAVIEditStream_fnClone(IAVIEditStream*iface,
static HRESULT WINAPI IAVIEditStream_fnSetInfo(IAVIEditStream*iface, static HRESULT WINAPI IAVIEditStream_fnSetInfo(IAVIEditStream*iface,
LPAVISTREAMINFOW asi,LONG size); LPAVISTREAMINFOW asi,LONG size);
struct IAVIEditStreamVtbl ieditstream = { static const struct IAVIEditStreamVtbl ieditstream = {
IAVIEditStream_fnQueryInterface, IAVIEditStream_fnQueryInterface,
IAVIEditStream_fnAddRef, IAVIEditStream_fnAddRef,
IAVIEditStream_fnRelease, IAVIEditStream_fnRelease,
...@@ -115,7 +115,7 @@ static HRESULT WINAPI IEditAVIStream_fnWriteData(IAVIStream*iface,DWORD fcc, ...@@ -115,7 +115,7 @@ static HRESULT WINAPI IEditAVIStream_fnWriteData(IAVIStream*iface,DWORD fcc,
LPVOID lp,LONG size); LPVOID lp,LONG size);
static HRESULT WINAPI IEditAVIStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen); static HRESULT WINAPI IEditAVIStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen);
struct IAVIStreamVtbl ieditstast = { static const struct IAVIStreamVtbl ieditstast = {
IEditAVIStream_fnQueryInterface, IEditAVIStream_fnQueryInterface,
IEditAVIStream_fnAddRef, IEditAVIStream_fnAddRef,
IEditAVIStream_fnRelease, IEditAVIStream_fnRelease,
...@@ -137,7 +137,7 @@ static ULONG WINAPI IEditStreamInternal_fnAddRef(IEditStreamInternal*iface); ...@@ -137,7 +137,7 @@ static ULONG WINAPI IEditStreamInternal_fnAddRef(IEditStreamInternal*iface);
static ULONG WINAPI IEditStreamInternal_fnRelease(IEditStreamInternal*iface); static ULONG WINAPI IEditStreamInternal_fnRelease(IEditStreamInternal*iface);
static HRESULT WINAPI IEditStreamInternal_fnGetEditStreamImpl(IEditStreamInternal*iface,LPVOID*ppimpl); static HRESULT WINAPI IEditStreamInternal_fnGetEditStreamImpl(IEditStreamInternal*iface,LPVOID*ppimpl);
struct IEditStreamInternalVtbl ieditstreaminternal = { static const struct IEditStreamInternalVtbl ieditstreaminternal = {
IEditStreamInternal_fnQueryInterface, IEditStreamInternal_fnQueryInterface,
IEditStreamInternal_fnAddRef, IEditStreamInternal_fnAddRef,
IEditStreamInternal_fnRelease, IEditStreamInternal_fnRelease,
...@@ -148,7 +148,7 @@ typedef struct _IAVIEditStreamImpl IAVIEditStreamImpl; ...@@ -148,7 +148,7 @@ typedef struct _IAVIEditStreamImpl IAVIEditStreamImpl;
typedef struct _IEditAVIStreamImpl { typedef struct _IEditAVIStreamImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIStreamVtbl *lpVtbl; const IAVIStreamVtbl *lpVtbl;
/* IAVIStream stuff */ /* IAVIStream stuff */
IAVIEditStreamImpl *pae; IAVIEditStreamImpl *pae;
...@@ -156,7 +156,7 @@ typedef struct _IEditAVIStreamImpl { ...@@ -156,7 +156,7 @@ typedef struct _IEditAVIStreamImpl {
typedef struct _IEditStreamInternalImpl { typedef struct _IEditStreamInternalImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IEditStreamInternalVtbl *lpVtbl; const IEditStreamInternalVtbl *lpVtbl;
/* IEditStreamInternal stuff */ /* IEditStreamInternal stuff */
IAVIEditStreamImpl *pae; IAVIEditStreamImpl *pae;
...@@ -164,7 +164,7 @@ typedef struct _IEditStreamInternalImpl { ...@@ -164,7 +164,7 @@ typedef struct _IEditStreamInternalImpl {
struct _IAVIEditStreamImpl { struct _IAVIEditStreamImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIEditStreamVtbl *lpVtbl; const IAVIEditStreamVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IAVIEditStream stuff */ /* IAVIEditStream stuff */
......
...@@ -50,7 +50,7 @@ static ULONG WINAPI IClassFactory_fnRelease(LPCLASSFACTORY iface); ...@@ -50,7 +50,7 @@ static ULONG WINAPI IClassFactory_fnRelease(LPCLASSFACTORY iface);
static HRESULT WINAPI IClassFactory_fnCreateInstance(LPCLASSFACTORY iface,LPUNKNOWN pOuter,REFIID riid,LPVOID *ppobj); static HRESULT WINAPI IClassFactory_fnCreateInstance(LPCLASSFACTORY iface,LPUNKNOWN pOuter,REFIID riid,LPVOID *ppobj);
static HRESULT WINAPI IClassFactory_fnLockServer(LPCLASSFACTORY iface,BOOL dolock); static HRESULT WINAPI IClassFactory_fnLockServer(LPCLASSFACTORY iface,BOOL dolock);
static IClassFactoryVtbl iclassfact = { static const IClassFactoryVtbl iclassfact = {
IClassFactory_fnQueryInterface, IClassFactory_fnQueryInterface,
IClassFactory_fnAddRef, IClassFactory_fnAddRef,
IClassFactory_fnRelease, IClassFactory_fnRelease,
...@@ -61,7 +61,7 @@ static IClassFactoryVtbl iclassfact = { ...@@ -61,7 +61,7 @@ static IClassFactoryVtbl iclassfact = {
typedef struct typedef struct
{ {
/* IUnknown fields */ /* IUnknown fields */
IClassFactoryVtbl *lpVtbl; const IClassFactoryVtbl *lpVtbl;
DWORD dwRef; DWORD dwRef;
CLSID clsid; CLSID clsid;
......
...@@ -54,7 +54,7 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface, ...@@ -54,7 +54,7 @@ static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface,
LPVOID lpBits, INT x, INT y, LPVOID lpBits, INT x, INT y,
INT dx, INT dy); INT dx, INT dy);
struct IGetFrameVtbl igetframeVtbl = { static const struct IGetFrameVtbl igetframeVtbl = {
IGetFrame_fnQueryInterface, IGetFrame_fnQueryInterface,
IGetFrame_fnAddRef, IGetFrame_fnAddRef,
IGetFrame_fnRelease, IGetFrame_fnRelease,
...@@ -66,7 +66,7 @@ struct IGetFrameVtbl igetframeVtbl = { ...@@ -66,7 +66,7 @@ struct IGetFrameVtbl igetframeVtbl = {
typedef struct _IGetFrameImpl { typedef struct _IGetFrameImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IGetFrameVtbl *lpVtbl; const IGetFrameVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IGetFrame stuff */ /* IGetFrame stuff */
......
...@@ -57,7 +57,7 @@ static HRESULT WINAPI ICMStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp, ...@@ -57,7 +57,7 @@ static HRESULT WINAPI ICMStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp,
static HRESULT WINAPI ICMStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size); static HRESULT WINAPI ICMStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size);
static HRESULT WINAPI ICMStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen); static HRESULT WINAPI ICMStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen);
struct IAVIStreamVtbl iicmst = { static const struct IAVIStreamVtbl iicmst = {
ICMStream_fnQueryInterface, ICMStream_fnQueryInterface,
ICMStream_fnAddRef, ICMStream_fnAddRef,
ICMStream_fnRelease, ICMStream_fnRelease,
...@@ -76,7 +76,7 @@ struct IAVIStreamVtbl iicmst = { ...@@ -76,7 +76,7 @@ struct IAVIStreamVtbl iicmst = {
typedef struct _IAVIStreamImpl { typedef struct _IAVIStreamImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIStreamVtbl *lpVtbl; const IAVIStreamVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IAVIStream stuff */ /* IAVIStream stuff */
......
...@@ -50,7 +50,7 @@ static HRESULT WINAPI ITmpFile_fnReadData(IAVIFile*iface,DWORD ckid,LPVOID lpDat ...@@ -50,7 +50,7 @@ static HRESULT WINAPI ITmpFile_fnReadData(IAVIFile*iface,DWORD ckid,LPVOID lpDat
static HRESULT WINAPI ITmpFile_fnEndRecord(IAVIFile*iface); static HRESULT WINAPI ITmpFile_fnEndRecord(IAVIFile*iface);
static HRESULT WINAPI ITmpFile_fnDeleteStream(IAVIFile*iface,DWORD fccType,LONG lParam); static HRESULT WINAPI ITmpFile_fnDeleteStream(IAVIFile*iface,DWORD fccType,LONG lParam);
struct IAVIFileVtbl itmpft = { static const struct IAVIFileVtbl itmpft = {
ITmpFile_fnQueryInterface, ITmpFile_fnQueryInterface,
ITmpFile_fnAddRef, ITmpFile_fnAddRef,
ITmpFile_fnRelease, ITmpFile_fnRelease,
...@@ -65,7 +65,7 @@ struct IAVIFileVtbl itmpft = { ...@@ -65,7 +65,7 @@ struct IAVIFileVtbl itmpft = {
typedef struct _ITmpFileImpl { typedef struct _ITmpFileImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIFileVtbl *lpVtbl; const IAVIFileVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IAVIFile stuff */ /* IAVIFile stuff */
......
...@@ -99,7 +99,7 @@ static HRESULT WINAPI IAVIFile_fnReadData(IAVIFile*iface,DWORD ckid,LPVOID lpDat ...@@ -99,7 +99,7 @@ static HRESULT WINAPI IAVIFile_fnReadData(IAVIFile*iface,DWORD ckid,LPVOID lpDat
static HRESULT WINAPI IAVIFile_fnEndRecord(IAVIFile*iface); static HRESULT WINAPI IAVIFile_fnEndRecord(IAVIFile*iface);
static HRESULT WINAPI IAVIFile_fnDeleteStream(IAVIFile*iface,DWORD fccType,LONG lParam); static HRESULT WINAPI IAVIFile_fnDeleteStream(IAVIFile*iface,DWORD fccType,LONG lParam);
struct IAVIFileVtbl iwavft = { static const struct IAVIFileVtbl iwavft = {
IAVIFile_fnQueryInterface, IAVIFile_fnQueryInterface,
IAVIFile_fnAddRef, IAVIFile_fnAddRef,
IAVIFile_fnRelease, IAVIFile_fnRelease,
...@@ -122,7 +122,7 @@ static HRESULT WINAPI IPersistFile_fnSave(IPersistFile*iface,LPCOLESTR pszFileNa ...@@ -122,7 +122,7 @@ static HRESULT WINAPI IPersistFile_fnSave(IPersistFile*iface,LPCOLESTR pszFileNa
static HRESULT WINAPI IPersistFile_fnSaveCompleted(IPersistFile*iface,LPCOLESTR pszFileName); static HRESULT WINAPI IPersistFile_fnSaveCompleted(IPersistFile*iface,LPCOLESTR pszFileName);
static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile*iface,LPOLESTR*ppszFileName); static HRESULT WINAPI IPersistFile_fnGetCurFile(IPersistFile*iface,LPOLESTR*ppszFileName);
struct IPersistFileVtbl iwavpft = { static const struct IPersistFileVtbl iwavpft = {
IPersistFile_fnQueryInterface, IPersistFile_fnQueryInterface,
IPersistFile_fnAddRef, IPersistFile_fnAddRef,
IPersistFile_fnRelease, IPersistFile_fnRelease,
...@@ -149,7 +149,7 @@ static HRESULT WINAPI IAVIStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp ...@@ -149,7 +149,7 @@ static HRESULT WINAPI IAVIStream_fnReadData(IAVIStream*iface,DWORD fcc,LPVOID lp
static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size); static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream*iface,DWORD fcc,LPVOID lp,LONG size);
static HRESULT WINAPI IAVIStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen); static HRESULT WINAPI IAVIStream_fnSetInfo(IAVIStream*iface,AVISTREAMINFOW*info,LONG infolen);
struct IAVIStreamVtbl iwavst = { static const struct IAVIStreamVtbl iwavst = {
IAVIStream_fnQueryInterface, IAVIStream_fnQueryInterface,
IAVIStream_fnAddRef, IAVIStream_fnAddRef,
IAVIStream_fnRelease, IAVIStream_fnRelease,
...@@ -170,7 +170,7 @@ typedef struct _IAVIFileImpl IAVIFileImpl; ...@@ -170,7 +170,7 @@ typedef struct _IAVIFileImpl IAVIFileImpl;
typedef struct _IPersistFileImpl { typedef struct _IPersistFileImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IPersistFileVtbl *lpVtbl; const IPersistFileVtbl *lpVtbl;
/* IPersistFile stuff */ /* IPersistFile stuff */
IAVIFileImpl *paf; IAVIFileImpl *paf;
...@@ -178,7 +178,7 @@ typedef struct _IPersistFileImpl { ...@@ -178,7 +178,7 @@ typedef struct _IPersistFileImpl {
typedef struct _IAVIStreamImpl { typedef struct _IAVIStreamImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIStreamVtbl *lpVtbl; const IAVIStreamVtbl *lpVtbl;
/* IAVIStream stuff */ /* IAVIStream stuff */
IAVIFileImpl *paf; IAVIFileImpl *paf;
...@@ -186,7 +186,7 @@ typedef struct _IAVIStreamImpl { ...@@ -186,7 +186,7 @@ typedef struct _IAVIStreamImpl {
struct _IAVIFileImpl { struct _IAVIFileImpl {
/* IUnknown stuff */ /* IUnknown stuff */
IAVIFileVtbl *lpVtbl; const IAVIFileVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* IAVIFile, IAVIStream stuff... */ /* IAVIFile, IAVIStream stuff... */
......
...@@ -46,7 +46,7 @@ extern DWORD dll_ref; ...@@ -46,7 +46,7 @@ extern DWORD dll_ref;
typedef struct typedef struct
{ {
/* IUnknown fields */ /* IUnknown fields */
IClassFactoryVtbl *lpVtbl; const IClassFactoryVtbl *lpVtbl;
DWORD ref; DWORD ref;
} ClassFactoryImpl; } ClassFactoryImpl;
...@@ -58,15 +58,15 @@ extern ClassFactoryImpl COMCAT_ClassFactory; ...@@ -58,15 +58,15 @@ extern ClassFactoryImpl COMCAT_ClassFactory;
typedef struct typedef struct
{ {
/* IUnknown fields */ /* IUnknown fields */
IUnknownVtbl *unkVtbl; const IUnknownVtbl *unkVtbl;
ICatRegisterVtbl *regVtbl; const ICatRegisterVtbl *regVtbl;
ICatInformationVtbl *infVtbl; const ICatInformationVtbl *infVtbl;
DWORD ref; DWORD ref;
} ComCatMgrImpl; } ComCatMgrImpl;
extern ComCatMgrImpl COMCAT_ComCatMgr; extern const ComCatMgrImpl COMCAT_ComCatMgr;
extern ICatRegisterVtbl COMCAT_ICatRegister_Vtbl; extern const ICatRegisterVtbl COMCAT_ICatRegister_Vtbl;
extern ICatInformationVtbl COMCAT_ICatInformation_Vtbl; extern const ICatInformationVtbl COMCAT_ICatInformation_Vtbl;
/********************************************************************** /**********************************************************************
* Global string constant declarations * Global string constant declarations
......
...@@ -134,7 +134,7 @@ static HRESULT WINAPI COMCAT_IClassFactory_LockServer( ...@@ -134,7 +134,7 @@ static HRESULT WINAPI COMCAT_IClassFactory_LockServer(
/********************************************************************** /**********************************************************************
* IClassFactory_Vtbl * IClassFactory_Vtbl
*/ */
static IClassFactoryVtbl IClassFactory_Vtbl = static const IClassFactoryVtbl IClassFactory_Vtbl =
{ {
COMCAT_IClassFactory_QueryInterface, COMCAT_IClassFactory_QueryInterface,
COMCAT_IClassFactory_AddRef, COMCAT_IClassFactory_AddRef,
......
...@@ -236,7 +236,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumImplCategoriesOfClass( ...@@ -236,7 +236,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumImplCategoriesOfClass(
LPENUMCATID *ppenumCATID) LPENUMCATID *ppenumCATID)
{ {
/* ICOM_THIS_MULTI(ComCatMgrImpl, infVtbl, iface); */ /* ICOM_THIS_MULTI(ComCatMgrImpl, infVtbl, iface); */
WCHAR postfix[24] = { '\\', 'I', 'm', 'p', 'l', 'e', 'm', 'e', static const WCHAR postfix[24] = { '\\', 'I', 'm', 'p', 'l', 'e', 'm', 'e',
'n', 't', 'e', 'd', ' ', 'C', 'a', 't', 'n', 't', 'e', 'd', ' ', 'C', 'a', 't',
'e', 'g', 'o', 'r', 'i', 'e', 's', 0 }; 'e', 'g', 'o', 'r', 'i', 'e', 's', 0 };
...@@ -259,7 +259,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumReqCategoriesOfClass( ...@@ -259,7 +259,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumReqCategoriesOfClass(
LPENUMCATID *ppenumCATID) LPENUMCATID *ppenumCATID)
{ {
/* ICOM_THIS_MULTI(ComCatMgrImpl, infVtbl, iface); */ /* ICOM_THIS_MULTI(ComCatMgrImpl, infVtbl, iface); */
WCHAR postfix[21] = { '\\', 'R', 'e', 'q', 'u', 'i', 'r', 'e', static const WCHAR postfix[21] = { '\\', 'R', 'e', 'q', 'u', 'i', 'r', 'e',
'd', ' ', 'C', 'a', 't', 'e', 'g', 'o', 'd', ' ', 'C', 'a', 't', 'e', 'g', 'o',
'r', 'i', 'e', 's', 0 }; 'r', 'i', 'e', 's', 0 };
...@@ -276,7 +276,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumReqCategoriesOfClass( ...@@ -276,7 +276,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_EnumReqCategoriesOfClass(
/********************************************************************** /**********************************************************************
* COMCAT_ICatInformation_Vtbl * COMCAT_ICatInformation_Vtbl
*/ */
ICatInformationVtbl COMCAT_ICatInformation_Vtbl = const ICatInformationVtbl COMCAT_ICatInformation_Vtbl =
{ {
COMCAT_ICatInformation_QueryInterface, COMCAT_ICatInformation_QueryInterface,
COMCAT_ICatInformation_AddRef, COMCAT_ICatInformation_AddRef,
...@@ -297,7 +297,7 @@ ICatInformationVtbl COMCAT_ICatInformation_Vtbl = ...@@ -297,7 +297,7 @@ ICatInformationVtbl COMCAT_ICatInformation_Vtbl =
*/ */
typedef struct typedef struct
{ {
IEnumCATEGORYINFOVtbl *lpVtbl; const IEnumCATEGORYINFOVtbl *lpVtbl;
DWORD ref; DWORD ref;
LCID lcid; LCID lcid;
HKEY key; HKEY key;
...@@ -451,7 +451,7 @@ static HRESULT WINAPI COMCAT_IEnumCATEGORYINFO_Clone( ...@@ -451,7 +451,7 @@ static HRESULT WINAPI COMCAT_IEnumCATEGORYINFO_Clone(
return S_OK; return S_OK;
} }
IEnumCATEGORYINFOVtbl COMCAT_IEnumCATEGORYINFO_Vtbl = static const IEnumCATEGORYINFOVtbl COMCAT_IEnumCATEGORYINFO_Vtbl =
{ {
COMCAT_IEnumCATEGORYINFO_QueryInterface, COMCAT_IEnumCATEGORYINFO_QueryInterface,
COMCAT_IEnumCATEGORYINFO_AddRef, COMCAT_IEnumCATEGORYINFO_AddRef,
...@@ -601,9 +601,9 @@ static HRESULT COMCAT_IsClassOfCategories( ...@@ -601,9 +601,9 @@ static HRESULT COMCAT_IsClassOfCategories(
*/ */
typedef struct typedef struct
{ {
IEnumGUIDVtbl *lpVtbl; const IEnumGUIDVtbl *lpVtbl;
DWORD ref; DWORD ref;
struct class_categories const *categories; const struct class_categories *categories;
HKEY key; HKEY key;
DWORD next_index; DWORD next_index;
} CLSID_IEnumGUIDImpl; } CLSID_IEnumGUIDImpl;
...@@ -759,7 +759,7 @@ static HRESULT WINAPI COMCAT_CLSID_IEnumGUID_Clone( ...@@ -759,7 +759,7 @@ static HRESULT WINAPI COMCAT_CLSID_IEnumGUID_Clone(
return S_OK; return S_OK;
} }
IEnumGUIDVtbl COMCAT_CLSID_IEnumGUID_Vtbl = static const IEnumGUIDVtbl COMCAT_CLSID_IEnumGUID_Vtbl =
{ {
COMCAT_CLSID_IEnumGUID_QueryInterface, COMCAT_CLSID_IEnumGUID_QueryInterface,
COMCAT_CLSID_IEnumGUID_AddRef, COMCAT_CLSID_IEnumGUID_AddRef,
...@@ -777,7 +777,7 @@ static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct( ...@@ -777,7 +777,7 @@ static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct(
This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(CLSID_IEnumGUIDImpl)); This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(CLSID_IEnumGUIDImpl));
if (This) { if (This) {
WCHAR keyname[6] = { 'C', 'L', 'S', 'I', 'D', 0 }; static const WCHAR keyname[] = { 'C', 'L', 'S', 'I', 'D', 0 };
This->lpVtbl = &COMCAT_CLSID_IEnumGUID_Vtbl; This->lpVtbl = &COMCAT_CLSID_IEnumGUID_Vtbl;
This->categories = categories; This->categories = categories;
...@@ -794,7 +794,7 @@ static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct( ...@@ -794,7 +794,7 @@ static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct(
*/ */
typedef struct typedef struct
{ {
IEnumGUIDVtbl *lpVtbl; const IEnumGUIDVtbl *lpVtbl;
DWORD ref; DWORD ref;
WCHAR keyname[68]; WCHAR keyname[68];
HKEY key; HKEY key;
...@@ -934,7 +934,7 @@ static HRESULT WINAPI COMCAT_CATID_IEnumGUID_Clone( ...@@ -934,7 +934,7 @@ static HRESULT WINAPI COMCAT_CATID_IEnumGUID_Clone(
return S_OK; return S_OK;
} }
IEnumGUIDVtbl COMCAT_CATID_IEnumGUID_Vtbl = static const IEnumGUIDVtbl COMCAT_CATID_IEnumGUID_Vtbl =
{ {
COMCAT_CATID_IEnumGUID_QueryInterface, COMCAT_CATID_IEnumGUID_QueryInterface,
COMCAT_CATID_IEnumGUID_AddRef, COMCAT_CATID_IEnumGUID_AddRef,
......
...@@ -40,19 +40,19 @@ static HRESULT WINAPI COMCAT_IUnknown_QueryInterface( ...@@ -40,19 +40,19 @@ static HRESULT WINAPI COMCAT_IUnknown_QueryInterface(
if (This == NULL || ppvObj == NULL) return E_POINTER; if (This == NULL || ppvObj == NULL) return E_POINTER;
if (IsEqualGUID(riid, &IID_IUnknown)) { if (IsEqualGUID(riid, &IID_IUnknown)) {
*ppvObj = (LPVOID)&This->unkVtbl; *ppvObj = &This->unkVtbl;
COMCAT_IUnknown_AddRef(iface); COMCAT_IUnknown_AddRef(iface);
return S_OK; return S_OK;
} }
if (IsEqualGUID(riid, &IID_ICatRegister)) { if (IsEqualGUID(riid, &IID_ICatRegister)) {
*ppvObj = (LPVOID)&This->regVtbl; *ppvObj = &This->regVtbl;
COMCAT_IUnknown_AddRef(iface); COMCAT_IUnknown_AddRef(iface);
return S_OK; return S_OK;
} }
if (IsEqualGUID(riid, &IID_ICatInformation)) { if (IsEqualGUID(riid, &IID_ICatInformation)) {
*ppvObj = (LPVOID)&This->infVtbl; *ppvObj = &This->infVtbl;
COMCAT_IUnknown_AddRef(iface); COMCAT_IUnknown_AddRef(iface);
return S_OK; return S_OK;
} }
...@@ -101,7 +101,7 @@ static ULONG WINAPI COMCAT_IUnknown_Release(LPUNKNOWN iface) ...@@ -101,7 +101,7 @@ static ULONG WINAPI COMCAT_IUnknown_Release(LPUNKNOWN iface)
/********************************************************************** /**********************************************************************
* COMCAT_IUnknown_Vtbl * COMCAT_IUnknown_Vtbl
*/ */
static IUnknownVtbl COMCAT_IUnknown_Vtbl = static const IUnknownVtbl COMCAT_IUnknown_Vtbl =
{ {
COMCAT_IUnknown_QueryInterface, COMCAT_IUnknown_QueryInterface,
COMCAT_IUnknown_AddRef, COMCAT_IUnknown_AddRef,
...@@ -111,7 +111,7 @@ static IUnknownVtbl COMCAT_IUnknown_Vtbl = ...@@ -111,7 +111,7 @@ static IUnknownVtbl COMCAT_IUnknown_Vtbl =
/********************************************************************** /**********************************************************************
* static ComCatMgr instance * static ComCatMgr instance
*/ */
ComCatMgrImpl COMCAT_ComCatMgr = const ComCatMgrImpl COMCAT_ComCatMgr =
{ {
&COMCAT_IUnknown_Vtbl, &COMCAT_IUnknown_Vtbl,
&COMCAT_ICatRegister_Vtbl, &COMCAT_ICatRegister_Vtbl,
......
...@@ -236,7 +236,7 @@ static HRESULT WINAPI COMCAT_ICatRegister_UnRegisterClassReqCategories( ...@@ -236,7 +236,7 @@ static HRESULT WINAPI COMCAT_ICatRegister_UnRegisterClassReqCategories(
/********************************************************************** /**********************************************************************
* COMCAT_ICatRegister_Vtbl * COMCAT_ICatRegister_Vtbl
*/ */
ICatRegisterVtbl COMCAT_ICatRegister_Vtbl = const ICatRegisterVtbl COMCAT_ICatRegister_Vtbl =
{ {
COMCAT_ICatRegister_QueryInterface, COMCAT_ICatRegister_QueryInterface,
COMCAT_ICatRegister_AddRef, COMCAT_ICatRegister_AddRef,
......
...@@ -47,9 +47,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg); ...@@ -47,9 +47,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg);
typedef struct typedef struct
{ {
IShellBrowserVtbl * lpVtbl; const IShellBrowserVtbl *lpVtbl;
ICommDlgBrowserVtbl * lpVtblCommDlgBrowser; const ICommDlgBrowserVtbl *lpVtblCommDlgBrowser;
IServiceProviderVtbl* lpVtblServiceProvider; const IServiceProviderVtbl *lpVtblServiceProvider;
DWORD ref; /* Reference counter */ DWORD ref; /* Reference counter */
HWND hwndOwner; /* Owner dialog of the interface */ HWND hwndOwner; /* Owner dialog of the interface */
...@@ -58,9 +58,9 @@ typedef struct ...@@ -58,9 +58,9 @@ typedef struct
/************************************************************************** /**************************************************************************
* vtable * vtable
*/ */
static IShellBrowserVtbl IShellBrowserImpl_Vtbl; static const IShellBrowserVtbl IShellBrowserImpl_Vtbl;
static ICommDlgBrowserVtbl IShellBrowserImpl_ICommDlgBrowser_Vtbl; static const ICommDlgBrowserVtbl IShellBrowserImpl_ICommDlgBrowser_Vtbl;
static IServiceProviderVtbl IShellBrowserImpl_IServiceProvider_Vtbl; static const IServiceProviderVtbl IShellBrowserImpl_IServiceProvider_Vtbl;
/************************************************************************** /**************************************************************************
* Local Prototypes * Local Prototypes
...@@ -689,7 +689,7 @@ HRESULT WINAPI IShellBrowserImpl_TranslateAcceleratorSB(IShellBrowser *iface, ...@@ -689,7 +689,7 @@ HRESULT WINAPI IShellBrowserImpl_TranslateAcceleratorSB(IShellBrowser *iface,
return E_NOTIMPL; return E_NOTIMPL;
} }
static IShellBrowserVtbl IShellBrowserImpl_Vtbl = static const IShellBrowserVtbl IShellBrowserImpl_Vtbl =
{ {
/* IUnknown */ /* IUnknown */
IShellBrowserImpl_QueryInterface, IShellBrowserImpl_QueryInterface,
...@@ -914,7 +914,7 @@ HRESULT IShellBrowserImpl_ICommDlgBrowser_OnSelChange(ICommDlgBrowser *iface, IS ...@@ -914,7 +914,7 @@ HRESULT IShellBrowserImpl_ICommDlgBrowser_OnSelChange(ICommDlgBrowser *iface, IS
return S_OK; return S_OK;
} }
static ICommDlgBrowserVtbl IShellBrowserImpl_ICommDlgBrowser_Vtbl = static const ICommDlgBrowserVtbl IShellBrowserImpl_ICommDlgBrowser_Vtbl =
{ {
/* IUnknown */ /* IUnknown */
IShellBrowserImpl_ICommDlgBrowser_QueryInterface, IShellBrowserImpl_ICommDlgBrowser_QueryInterface,
...@@ -1003,7 +1003,7 @@ HRESULT WINAPI IShellBrowserImpl_IServiceProvider_QueryService( ...@@ -1003,7 +1003,7 @@ HRESULT WINAPI IShellBrowserImpl_IServiceProvider_QueryService(
} }
static IServiceProviderVtbl IShellBrowserImpl_IServiceProvider_Vtbl = static const IServiceProviderVtbl IShellBrowserImpl_IServiceProvider_Vtbl =
{ {
/* IUnknown */ /* IUnknown */
IShellBrowserImpl_IServiceProvider_QueryInterface, IShellBrowserImpl_IServiceProvider_QueryInterface,
......
...@@ -130,7 +130,7 @@ DWORD WINAPI IDirect3DBaseTexture8Impl_GetLevelCount(LPDIRECT3DBASETEX ...@@ -130,7 +130,7 @@ DWORD WINAPI IDirect3DBaseTexture8Impl_GetLevelCount(LPDIRECT3DBASETEX
return This->levels; return This->levels;
} }
IDirect3DBaseTexture8Vtbl Direct3DBaseTexture8_Vtbl = static const IDirect3DBaseTexture8Vtbl Direct3DBaseTexture8_Vtbl =
{ {
IDirect3DBaseTexture8Impl_QueryInterface, IDirect3DBaseTexture8Impl_QueryInterface,
IDirect3DBaseTexture8Impl_AddRef, IDirect3DBaseTexture8Impl_AddRef,
......
...@@ -279,7 +279,7 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_AddDirtyRect(LPDIRECT3DCUBETEXT ...@@ -279,7 +279,7 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_AddDirtyRect(LPDIRECT3DCUBETEXT
} }
IDirect3DCubeTexture8Vtbl Direct3DCubeTexture8_Vtbl = const IDirect3DCubeTexture8Vtbl Direct3DCubeTexture8_Vtbl =
{ {
IDirect3DCubeTexture8Impl_QueryInterface, IDirect3DCubeTexture8Impl_QueryInterface,
IDirect3DCubeTexture8Impl_AddRef, IDirect3DCubeTexture8Impl_AddRef,
......
...@@ -4349,7 +4349,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(LPDIRECT3DDEVICE8 iface, U ...@@ -4349,7 +4349,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetStreamSource(LPDIRECT3DDEVICE8 iface, U
} }
IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl = const IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl =
{ {
IDirect3DDevice8Impl_QueryInterface, IDirect3DDevice8Impl_QueryInterface,
IDirect3DDevice8Impl_AddRef, IDirect3DDevice8Impl_AddRef,
......
...@@ -828,7 +828,7 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface, ...@@ -828,7 +828,7 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
return D3D_OK; return D3D_OK;
} }
IDirect3D8Vtbl Direct3D8_Vtbl = const IDirect3D8Vtbl Direct3D8_Vtbl =
{ {
IDirect3D8Impl_QueryInterface, IDirect3D8Impl_QueryInterface,
IDirect3D8Impl_AddRef, IDirect3D8Impl_AddRef,
......
...@@ -130,7 +130,7 @@ HRESULT WINAPI IDirect3DIndexBuffer8Impl_GetDesc(LPDIRECT3DINDEXBUFFER8 ...@@ -130,7 +130,7 @@ HRESULT WINAPI IDirect3DIndexBuffer8Impl_GetDesc(LPDIRECT3DINDEXBUFFER8
return D3D_OK; return D3D_OK;
} }
IDirect3DIndexBuffer8Vtbl Direct3DIndexBuffer8_Vtbl = const IDirect3DIndexBuffer8Vtbl Direct3DIndexBuffer8_Vtbl =
{ {
IDirect3DIndexBuffer8Impl_QueryInterface, IDirect3DIndexBuffer8Impl_QueryInterface,
IDirect3DIndexBuffer8Impl_AddRef, IDirect3DIndexBuffer8Impl_AddRef,
......
...@@ -132,7 +132,7 @@ D3DPOOL WINAPI IDirect3DResource8Impl_GetPool(LPDIRECT3DRESOURCE8 iface) { ...@@ -132,7 +132,7 @@ D3DPOOL WINAPI IDirect3DResource8Impl_GetPool(LPDIRECT3DRESOURCE8 iface) {
} }
} }
IDirect3DResource8Vtbl Direct3DResource8_Vtbl = const IDirect3DResource8Vtbl Direct3DResource8_Vtbl =
{ {
IDirect3DResource8Impl_QueryInterface, IDirect3DResource8Impl_QueryInterface,
IDirect3DResource8Impl_AddRef, IDirect3DResource8Impl_AddRef,
......
...@@ -468,7 +468,7 @@ unlock_end: ...@@ -468,7 +468,7 @@ unlock_end:
} }
IDirect3DSurface8Vtbl Direct3DSurface8_Vtbl = const IDirect3DSurface8Vtbl Direct3DSurface8_Vtbl =
{ {
IDirect3DSurface8Impl_QueryInterface, IDirect3DSurface8Impl_QueryInterface,
IDirect3DSurface8Impl_AddRef, IDirect3DSurface8Impl_AddRef,
......
...@@ -91,7 +91,7 @@ HRESULT WINAPI IDirect3DSwapChain8Impl_GetBackBuffer(LPDIRECT3DSWAPCHAIN8 iface, ...@@ -91,7 +91,7 @@ HRESULT WINAPI IDirect3DSwapChain8Impl_GetBackBuffer(LPDIRECT3DSWAPCHAIN8 iface,
return D3D_OK; return D3D_OK;
} }
IDirect3DSwapChain8Vtbl Direct3DSwapChain8_Vtbl = const IDirect3DSwapChain8Vtbl Direct3DSwapChain8_Vtbl =
{ {
IDirect3DSwapChain8Impl_QueryInterface, IDirect3DSwapChain8Impl_QueryInterface,
IDirect3DSwapChain8Impl_AddRef, IDirect3DSwapChain8Impl_AddRef,
......
...@@ -235,7 +235,7 @@ HRESULT WINAPI IDirect3DTexture8Impl_AddDirtyRect(LPDIRECT3DTEXTURE8 ifa ...@@ -235,7 +235,7 @@ HRESULT WINAPI IDirect3DTexture8Impl_AddDirtyRect(LPDIRECT3DTEXTURE8 ifa
} }
IDirect3DTexture8Vtbl Direct3DTexture8_Vtbl = const IDirect3DTexture8Vtbl Direct3DTexture8_Vtbl =
{ {
IDirect3DTexture8Impl_QueryInterface, IDirect3DTexture8Impl_QueryInterface,
IDirect3DTexture8Impl_AddRef, IDirect3DTexture8Impl_AddRef,
......
...@@ -135,7 +135,7 @@ HRESULT WINAPI IDirect3DVertexBuffer8Impl_GetDesc(LPDIRECT3DVERTEXBUFFER ...@@ -135,7 +135,7 @@ HRESULT WINAPI IDirect3DVertexBuffer8Impl_GetDesc(LPDIRECT3DVERTEXBUFFER
return D3D_OK; return D3D_OK;
} }
IDirect3DVertexBuffer8Vtbl Direct3DVertexBuffer8_Vtbl = const IDirect3DVertexBuffer8Vtbl Direct3DVertexBuffer8_Vtbl =
{ {
IDirect3DVertexBuffer8Impl_QueryInterface, IDirect3DVertexBuffer8Impl_QueryInterface,
IDirect3DVertexBuffer8Impl_AddRef, IDirect3DVertexBuffer8Impl_AddRef,
......
...@@ -192,7 +192,7 @@ HRESULT WINAPI IDirect3DVolume8Impl_UnlockBox(LPDIRECT3DVOLUME8 iface) { ...@@ -192,7 +192,7 @@ HRESULT WINAPI IDirect3DVolume8Impl_UnlockBox(LPDIRECT3DVOLUME8 iface) {
} }
IDirect3DVolume8Vtbl Direct3DVolume8_Vtbl = const IDirect3DVolume8Vtbl Direct3DVolume8_Vtbl =
{ {
IDirect3DVolume8Impl_QueryInterface, IDirect3DVolume8Impl_QueryInterface,
IDirect3DVolume8Impl_AddRef, IDirect3DVolume8Impl_AddRef,
......
...@@ -261,7 +261,7 @@ HRESULT WINAPI IDirect3DVolumeTexture8Impl_AddDirtyBox(LPDIRECT3DVOLUMET ...@@ -261,7 +261,7 @@ HRESULT WINAPI IDirect3DVolumeTexture8Impl_AddDirtyBox(LPDIRECT3DVOLUMET
} }
IDirect3DVolumeTexture8Vtbl Direct3DVolumeTexture8_Vtbl = const IDirect3DVolumeTexture8Vtbl Direct3DVolumeTexture8_Vtbl =
{ {
IDirect3DVolumeTexture8Impl_QueryInterface, IDirect3DVolumeTexture8Impl_QueryInterface,
IDirect3DVolumeTexture8Impl_AddRef, IDirect3DVolumeTexture8Impl_AddRef,
......
...@@ -149,7 +149,7 @@ void WINAPI IDirect3DBaseTexture9Impl_GenerateMipSubLevels(LPDIRECT3DBASETEXTURE ...@@ -149,7 +149,7 @@ void WINAPI IDirect3DBaseTexture9Impl_GenerateMipSubLevels(LPDIRECT3DBASETEXTURE
return IWineD3DBaseTexture_GenerateMipSubLevels(This->wineD3DBaseTexture); return IWineD3DBaseTexture_GenerateMipSubLevels(This->wineD3DBaseTexture);
} }
IDirect3DBaseTexture9Vtbl Direct3DBaseTexture9_Vtbl = const IDirect3DBaseTexture9Vtbl Direct3DBaseTexture9_Vtbl =
{ {
IDirect3DBaseTexture9Impl_QueryInterface, IDirect3DBaseTexture9Impl_QueryInterface,
IDirect3DBaseTexture9Impl_AddRef, IDirect3DBaseTexture9Impl_AddRef,
......
...@@ -207,7 +207,7 @@ HRESULT WINAPI IDirect3DCubeTexture9Impl_AddDirtyRect(LPDIRECT3DCUBETEXTURE9 if ...@@ -207,7 +207,7 @@ HRESULT WINAPI IDirect3DCubeTexture9Impl_AddDirtyRect(LPDIRECT3DCUBETEXTURE9 if
} }
IDirect3DCubeTexture9Vtbl Direct3DCubeTexture9_Vtbl = const IDirect3DCubeTexture9Vtbl Direct3DCubeTexture9_Vtbl =
{ {
IDirect3DCubeTexture9Impl_QueryInterface, IDirect3DCubeTexture9Impl_QueryInterface,
IDirect3DCubeTexture9Impl_AddRef, IDirect3DCubeTexture9Impl_AddRef,
......
...@@ -775,7 +775,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_DeletePatch(LPDIRECT3DDEVICE9 iface, UINT ...@@ -775,7 +775,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_DeletePatch(LPDIRECT3DDEVICE9 iface, UINT
return IWineD3DDevice_DeletePatch(This->WineD3DDevice, Handle); return IWineD3DDevice_DeletePatch(This->WineD3DDevice, Handle);
} }
IDirect3DDevice9Vtbl Direct3DDevice9_Vtbl = const IDirect3DDevice9Vtbl Direct3DDevice9_Vtbl =
{ {
IDirect3DDevice9Impl_QueryInterface, IDirect3DDevice9Impl_QueryInterface,
IDirect3DDevice9Impl_AddRef, IDirect3DDevice9Impl_AddRef,
......
...@@ -229,7 +229,7 @@ HRESULT WINAPI IDirect3D9Impl_CreateDevice(LPDIRECT3D9 iface, UINT Adapter, D3 ...@@ -229,7 +229,7 @@ HRESULT WINAPI IDirect3D9Impl_CreateDevice(LPDIRECT3D9 iface, UINT Adapter, D3
return IWineD3D_CreateDevice(This->WineD3D, Adapter, DeviceType, hFocusWindow, BehaviourFlags, &localParameters, &object->WineD3DDevice, (IUnknown *)object, D3D9CB_CreateRenderTarget); return IWineD3D_CreateDevice(This->WineD3D, Adapter, DeviceType, hFocusWindow, BehaviourFlags, &localParameters, &object->WineD3DDevice, (IUnknown *)object, D3D9CB_CreateRenderTarget);
} }
IDirect3D9Vtbl Direct3D9_Vtbl = const IDirect3D9Vtbl Direct3D9_Vtbl =
{ {
IDirect3D9Impl_QueryInterface, IDirect3D9Impl_QueryInterface,
IDirect3D9Impl_AddRef, IDirect3D9Impl_AddRef,
......
...@@ -131,7 +131,7 @@ HRESULT WINAPI IDirect3DIndexBuffer9Impl_GetDesc(LPDIRECT3DINDEXBUFFER9 ...@@ -131,7 +131,7 @@ HRESULT WINAPI IDirect3DIndexBuffer9Impl_GetDesc(LPDIRECT3DINDEXBUFFER9
} }
IDirect3DIndexBuffer9Vtbl Direct3DIndexBuffer9_Vtbl = const IDirect3DIndexBuffer9Vtbl Direct3DIndexBuffer9_Vtbl =
{ {
IDirect3DIndexBuffer9Impl_QueryInterface, IDirect3DIndexBuffer9Impl_QueryInterface,
IDirect3DIndexBuffer9Impl_AddRef, IDirect3DIndexBuffer9Impl_AddRef,
......
...@@ -76,7 +76,7 @@ HRESULT WINAPI IDirect3DPixelShader9Impl_GetFunction(LPDIRECT3DPIXELSHADER9 ifac ...@@ -76,7 +76,7 @@ HRESULT WINAPI IDirect3DPixelShader9Impl_GetFunction(LPDIRECT3DPIXELSHADER9 ifac
} }
IDirect3DPixelShader9Vtbl Direct3DPixelShader9_Vtbl = const IDirect3DPixelShader9Vtbl Direct3DPixelShader9_Vtbl =
{ {
IDirect3DPixelShader9Impl_QueryInterface, IDirect3DPixelShader9Impl_QueryInterface,
IDirect3DPixelShader9Impl_AddRef, IDirect3DPixelShader9Impl_AddRef,
......
...@@ -104,7 +104,7 @@ HRESULT WINAPI IDirect3DQuery9Impl_GetData(LPDIRECT3DQUERY9 iface, void* pData, ...@@ -104,7 +104,7 @@ HRESULT WINAPI IDirect3DQuery9Impl_GetData(LPDIRECT3DQUERY9 iface, void* pData,
} }
IDirect3DQuery9Vtbl Direct3DQuery9_Vtbl = const IDirect3DQuery9Vtbl Direct3DQuery9_Vtbl =
{ {
IDirect3DQuery9Impl_QueryInterface, IDirect3DQuery9Impl_QueryInterface,
IDirect3DQuery9Impl_AddRef, IDirect3DQuery9Impl_AddRef,
......
...@@ -118,7 +118,7 @@ D3DRESOURCETYPE WINAPI IDirect3DResource9Impl_GetType(LPDIRECT3DRESOURCE9 iface) ...@@ -118,7 +118,7 @@ D3DRESOURCETYPE WINAPI IDirect3DResource9Impl_GetType(LPDIRECT3DRESOURCE9 iface)
} }
IDirect3DResource9Vtbl Direct3DResource9_Vtbl = const IDirect3DResource9Vtbl Direct3DResource9_Vtbl =
{ {
IDirect3DResource9Impl_QueryInterface, IDirect3DResource9Impl_QueryInterface,
IDirect3DResource9Impl_AddRef, IDirect3DResource9Impl_AddRef,
......
...@@ -82,7 +82,7 @@ HRESULT WINAPI IDirect3DStateBlock9Impl_Apply(LPDIRECT3DSTATEBLOCK9 iface) { ...@@ -82,7 +82,7 @@ HRESULT WINAPI IDirect3DStateBlock9Impl_Apply(LPDIRECT3DSTATEBLOCK9 iface) {
} }
IDirect3DStateBlock9Vtbl Direct3DStateBlock9_Vtbl = const IDirect3DStateBlock9Vtbl Direct3DStateBlock9_Vtbl =
{ {
IDirect3DStateBlock9Impl_QueryInterface, IDirect3DStateBlock9Impl_QueryInterface,
IDirect3DStateBlock9Impl_AddRef, IDirect3DStateBlock9Impl_AddRef,
......
...@@ -204,7 +204,7 @@ HRESULT WINAPI IDirect3DSurface9Impl_ReleaseDC(LPDIRECT3DSURFACE9 iface, HDC hdc ...@@ -204,7 +204,7 @@ HRESULT WINAPI IDirect3DSurface9Impl_ReleaseDC(LPDIRECT3DSURFACE9 iface, HDC hdc
} }
IDirect3DSurface9Vtbl Direct3DSurface9_Vtbl = const IDirect3DSurface9Vtbl Direct3DSurface9_Vtbl =
{ {
IDirect3DSurface9Impl_QueryInterface, IDirect3DSurface9Impl_QueryInterface,
IDirect3DSurface9Impl_AddRef, IDirect3DSurface9Impl_AddRef,
......
...@@ -111,7 +111,7 @@ HRESULT WINAPI IDirect3DSwapChain9Impl_GetPresentParameters(LPDIRECT3DSWAPCHAIN9 ...@@ -111,7 +111,7 @@ HRESULT WINAPI IDirect3DSwapChain9Impl_GetPresentParameters(LPDIRECT3DSWAPCHAIN9
} }
IDirect3DSwapChain9Vtbl Direct3DSwapChain9_Vtbl = const IDirect3DSwapChain9Vtbl Direct3DSwapChain9_Vtbl =
{ {
IDirect3DSwapChain9Impl_QueryInterface, IDirect3DSwapChain9Impl_QueryInterface,
IDirect3DSwapChain9Impl_AddRef, IDirect3DSwapChain9Impl_AddRef,
......
...@@ -185,7 +185,7 @@ HRESULT WINAPI IDirect3DTexture9Impl_AddDirtyRect(LPDIRECT3DTEXTURE9 iface, CONS ...@@ -185,7 +185,7 @@ HRESULT WINAPI IDirect3DTexture9Impl_AddDirtyRect(LPDIRECT3DTEXTURE9 iface, CONS
return IWineD3DTexture_AddDirtyRect(This->wineD3DTexture, pDirtyRect); return IWineD3DTexture_AddDirtyRect(This->wineD3DTexture, pDirtyRect);
} }
IDirect3DTexture9Vtbl Direct3DTexture9_Vtbl = const IDirect3DTexture9Vtbl Direct3DTexture9_Vtbl =
{ {
IDirect3DTexture9Impl_QueryInterface, IDirect3DTexture9Impl_QueryInterface,
IDirect3DTexture9Impl_AddRef, IDirect3DTexture9Impl_AddRef,
......
...@@ -132,7 +132,7 @@ HRESULT WINAPI IDirect3DVertexBuffer9Impl_GetDesc(LPDIRECT3DVERTEXBUFFER9 iface, ...@@ -132,7 +132,7 @@ HRESULT WINAPI IDirect3DVertexBuffer9Impl_GetDesc(LPDIRECT3DVERTEXBUFFER9 iface,
return IWineD3DVertexBuffer_GetDesc(This->wineD3DVertexBuffer, pDesc); return IWineD3DVertexBuffer_GetDesc(This->wineD3DVertexBuffer, pDesc);
} }
IDirect3DVertexBuffer9Vtbl Direct3DVertexBuffer9_Vtbl = const IDirect3DVertexBuffer9Vtbl Direct3DVertexBuffer9_Vtbl =
{ {
IDirect3DVertexBuffer9Impl_QueryInterface, IDirect3DVertexBuffer9Impl_QueryInterface,
IDirect3DVertexBuffer9Impl_AddRef, IDirect3DVertexBuffer9Impl_AddRef,
......
...@@ -77,7 +77,7 @@ HRESULT WINAPI IDirect3DVertexDeclaration9Impl_GetDeclaration(LPDIRECT3DVERTEXDE ...@@ -77,7 +77,7 @@ HRESULT WINAPI IDirect3DVertexDeclaration9Impl_GetDeclaration(LPDIRECT3DVERTEXDE
} }
IDirect3DVertexDeclaration9Vtbl Direct3DVertexDeclaration9_Vtbl = const IDirect3DVertexDeclaration9Vtbl Direct3DVertexDeclaration9_Vtbl =
{ {
IDirect3DVertexDeclaration9Impl_QueryInterface, IDirect3DVertexDeclaration9Impl_QueryInterface,
IDirect3DVertexDeclaration9Impl_AddRef, IDirect3DVertexDeclaration9Impl_AddRef,
......
...@@ -76,7 +76,7 @@ HRESULT WINAPI IDirect3DVertexShader9Impl_GetFunction(LPDIRECT3DVERTEXSHADER9 if ...@@ -76,7 +76,7 @@ HRESULT WINAPI IDirect3DVertexShader9Impl_GetFunction(LPDIRECT3DVERTEXSHADER9 if
} }
IDirect3DVertexShader9Vtbl Direct3DVertexShader9_Vtbl = const IDirect3DVertexShader9Vtbl Direct3DVertexShader9_Vtbl =
{ {
IDirect3DVertexShader9Impl_QueryInterface, IDirect3DVertexShader9Impl_QueryInterface,
IDirect3DVertexShader9Impl_AddRef, IDirect3DVertexShader9Impl_AddRef,
......
...@@ -139,7 +139,7 @@ HRESULT WINAPI IDirect3DVolume9Impl_UnlockBox(LPDIRECT3DVOLUME9 iface) { ...@@ -139,7 +139,7 @@ HRESULT WINAPI IDirect3DVolume9Impl_UnlockBox(LPDIRECT3DVOLUME9 iface) {
return IWineD3DVolume_UnlockBox(This->wineD3DVolume); return IWineD3DVolume_UnlockBox(This->wineD3DVolume);
} }
IDirect3DVolume9Vtbl Direct3DVolume9_Vtbl = const IDirect3DVolume9Vtbl Direct3DVolume9_Vtbl =
{ {
IDirect3DVolume9Impl_QueryInterface, IDirect3DVolume9Impl_QueryInterface,
IDirect3DVolume9Impl_AddRef, IDirect3DVolume9Impl_AddRef,
......
...@@ -204,7 +204,7 @@ HRESULT WINAPI IDirect3DVolumeTexture9Impl_AddDirtyBox(LPDIRECT3DVOLUMETEXTURE9 ...@@ -204,7 +204,7 @@ HRESULT WINAPI IDirect3DVolumeTexture9Impl_AddDirtyBox(LPDIRECT3DVOLUMETEXTURE9
} }
IDirect3DVolumeTexture9Vtbl Direct3DVolumeTexture9_Vtbl = const IDirect3DVolumeTexture9Vtbl Direct3DVolumeTexture9_Vtbl =
{ {
IDirect3DVolumeTexture9Impl_QueryInterface, IDirect3DVolumeTexture9Impl_QueryInterface,
IDirect3DVolumeTexture9Impl_AddRef, IDirect3DVolumeTexture9Impl_AddRef,
......
...@@ -38,7 +38,7 @@ typedef struct ID3DXFontImpl ID3DXFontImpl; ...@@ -38,7 +38,7 @@ typedef struct ID3DXFontImpl ID3DXFontImpl;
/***************************************************************************** /*****************************************************************************
* Predeclare the interface implementation structures * Predeclare the interface implementation structures
*/ */
extern ID3DXBufferVtbl D3DXBuffer_Vtbl; extern const ID3DXBufferVtbl D3DXBuffer_Vtbl;
/***************************************************************************** /*****************************************************************************
* ID3DXBufferImpl implementation structure * ID3DXBufferImpl implementation structure
...@@ -46,7 +46,7 @@ extern ID3DXBufferVtbl D3DXBuffer_Vtbl; ...@@ -46,7 +46,7 @@ extern ID3DXBufferVtbl D3DXBuffer_Vtbl;
struct ID3DXBufferImpl struct ID3DXBufferImpl
{ {
/* IUnknown fields */ /* IUnknown fields */
ID3DXBufferVtbl *lpVtbl; const ID3DXBufferVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* ID3DXBuffer fields */ /* ID3DXBuffer fields */
...@@ -70,7 +70,7 @@ extern DWORD WINAPI ID3DXBufferImpl_GetBufferSize(LPD3DXBUFFER iface); ...@@ -70,7 +70,7 @@ extern DWORD WINAPI ID3DXBufferImpl_GetBufferSize(LPD3DXBUFFER iface);
/***************************************************************************** /*****************************************************************************
* Predeclare the interface implementation structures * Predeclare the interface implementation structures
*/ */
extern ID3DXFontVtbl D3DXFont_Vtbl; extern const ID3DXFontVtbl D3DXFont_Vtbl;
/***************************************************************************** /*****************************************************************************
* ID3DXFontImpl implementation structure * ID3DXFontImpl implementation structure
...@@ -78,7 +78,7 @@ extern ID3DXFontVtbl D3DXFont_Vtbl; ...@@ -78,7 +78,7 @@ extern ID3DXFontVtbl D3DXFont_Vtbl;
struct ID3DXFontImpl struct ID3DXFontImpl
{ {
/* IUnknown fields */ /* IUnknown fields */
ID3DXFontVtbl *lpVtbl; const ID3DXFontVtbl *lpVtbl;
DWORD ref; DWORD ref;
/* ID3DXFont fields */ /* ID3DXFont fields */
......
...@@ -82,7 +82,7 @@ DWORD WINAPI ID3DXBufferImpl_GetBufferSize(LPD3DXBUFFER iface) { ...@@ -82,7 +82,7 @@ DWORD WINAPI ID3DXBufferImpl_GetBufferSize(LPD3DXBUFFER iface) {
return This->bufferSize; return This->bufferSize;
} }
ID3DXBufferVtbl D3DXBuffer_Vtbl = const ID3DXBufferVtbl D3DXBuffer_Vtbl =
{ {
ID3DXBufferImpl_QueryInterface, ID3DXBufferImpl_QueryInterface,
ID3DXBufferImpl_AddRef, ID3DXBufferImpl_AddRef,
......
...@@ -34,13 +34,13 @@ ...@@ -34,13 +34,13 @@
WINE_DEFAULT_DEBUG_CHANNEL(d3dxof); WINE_DEFAULT_DEBUG_CHANNEL(d3dxof);
static struct IDirectXFileVtbl IDirectXFile_Vtbl; static const struct IDirectXFileVtbl IDirectXFile_Vtbl;
static struct IDirectXFileBinaryVtbl IDirectXFileBinary_Vtbl; static const struct IDirectXFileBinaryVtbl IDirectXFileBinary_Vtbl;
static struct IDirectXFileDataVtbl IDirectXFileData_Vtbl; static const struct IDirectXFileDataVtbl IDirectXFileData_Vtbl;
static struct IDirectXFileDataReferenceVtbl IDirectXFileDataReference_Vtbl; static const struct IDirectXFileDataReferenceVtbl IDirectXFileDataReference_Vtbl;
static struct IDirectXFileEnumObjectVtbl IDirectXFileEnumObject_Vtbl; static const struct IDirectXFileEnumObjectVtbl IDirectXFileEnumObject_Vtbl;
static struct IDirectXFileObjectVtbl IDirectXFileObject_Vtbl; static const struct IDirectXFileObjectVtbl IDirectXFileObject_Vtbl;
static struct IDirectXFileSaveObjectVtbl IDirectXFileSaveObject_Vtbl; static const struct IDirectXFileSaveObjectVtbl IDirectXFileSaveObject_Vtbl;
HRESULT IDirectXFileImpl_Create(IUnknown* pUnkOuter, LPVOID* ppObj) HRESULT IDirectXFileImpl_Create(IUnknown* pUnkOuter, LPVOID* ppObj)
{ {
...@@ -142,7 +142,7 @@ static HRESULT WINAPI IDirectXFileImpl_RegisterTemplates(IDirectXFile* iface, LP ...@@ -142,7 +142,7 @@ static HRESULT WINAPI IDirectXFileImpl_RegisterTemplates(IDirectXFile* iface, LP
return S_FALSE; return S_FALSE;
} }
static IDirectXFileVtbl IDirectXFile_Vtbl = static const IDirectXFileVtbl IDirectXFile_Vtbl =
{ {
IDirectXFileImpl_QueryInterface, IDirectXFileImpl_QueryInterface,
IDirectXFileImpl_AddRef, IDirectXFileImpl_AddRef,
...@@ -259,7 +259,7 @@ static HRESULT WINAPI IDirectXFileBinaryImpl_Read(IDirectXFileBinary* iface, LPV ...@@ -259,7 +259,7 @@ static HRESULT WINAPI IDirectXFileBinaryImpl_Read(IDirectXFileBinary* iface, LPV
return S_FALSE; return S_FALSE;
} }
static IDirectXFileBinaryVtbl IDirectXFileBinary_Vtbl = static const IDirectXFileBinaryVtbl IDirectXFileBinary_Vtbl =
{ {
IDirectXFileBinaryImpl_QueryInterface, IDirectXFileBinaryImpl_QueryInterface,
IDirectXFileBinaryImpl_AddRef, IDirectXFileBinaryImpl_AddRef,
...@@ -405,7 +405,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_AddBinaryObject(IDirectXFileData* ifa ...@@ -405,7 +405,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_AddBinaryObject(IDirectXFileData* ifa
return S_FALSE; return S_FALSE;
} }
static IDirectXFileDataVtbl IDirectXFileData_Vtbl = static const IDirectXFileDataVtbl IDirectXFileData_Vtbl =
{ {
IDirectXFileDataImpl_QueryInterface, IDirectXFileDataImpl_QueryInterface,
IDirectXFileDataImpl_AddRef, IDirectXFileDataImpl_AddRef,
...@@ -508,7 +508,7 @@ static HRESULT WINAPI IDirectXFileDataReferenceImpl_Resolve(IDirectXFileDataRefe ...@@ -508,7 +508,7 @@ static HRESULT WINAPI IDirectXFileDataReferenceImpl_Resolve(IDirectXFileDataRefe
return S_FALSE; return S_FALSE;
} }
static IDirectXFileDataReferenceVtbl IDirectXFileDataReference_Vtbl = static const IDirectXFileDataReferenceVtbl IDirectXFileDataReference_Vtbl =
{ {
IDirectXFileDataReferenceImpl_QueryInterface, IDirectXFileDataReferenceImpl_QueryInterface,
IDirectXFileDataReferenceImpl_AddRef, IDirectXFileDataReferenceImpl_AddRef,
...@@ -612,7 +612,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetDataObjectByName(IDirectXFil ...@@ -612,7 +612,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetDataObjectByName(IDirectXFil
return S_FALSE; return S_FALSE;
} }
static IDirectXFileEnumObjectVtbl IDirectXFileEnumObject_Vtbl = static const IDirectXFileEnumObjectVtbl IDirectXFileEnumObject_Vtbl =
{ {
IDirectXFileEnumObjectImpl_QueryInterface, IDirectXFileEnumObjectImpl_QueryInterface,
IDirectXFileEnumObjectImpl_AddRef, IDirectXFileEnumObjectImpl_AddRef,
...@@ -699,7 +699,7 @@ static HRESULT WINAPI IDirectXFileObjectImpl_GetId(IDirectXFileObject* iface, LP ...@@ -699,7 +699,7 @@ static HRESULT WINAPI IDirectXFileObjectImpl_GetId(IDirectXFileObject* iface, LP
return S_FALSE; return S_FALSE;
} }
static IDirectXFileObjectVtbl IDirectXFileObject_Vtbl = static const IDirectXFileObjectVtbl IDirectXFileObject_Vtbl =
{ {
IDirectXFileObjectImpl_QueryInterface, IDirectXFileObjectImpl_QueryInterface,
IDirectXFileObjectImpl_AddRef, IDirectXFileObjectImpl_AddRef,
...@@ -793,7 +793,7 @@ static HRESULT WINAPI IDirectXFileSaveObjectImpl_SaveData(IDirectXFileSaveObject ...@@ -793,7 +793,7 @@ static HRESULT WINAPI IDirectXFileSaveObjectImpl_SaveData(IDirectXFileSaveObject
return S_FALSE; return S_FALSE;
} }
static IDirectXFileSaveObjectVtbl IDirectXFileSaveObject_Vtbl = static const IDirectXFileSaveObjectVtbl IDirectXFileSaveObject_Vtbl =
{ {
IDirectXFileSaveObjectImpl_QueryInterface, IDirectXFileSaveObjectImpl_QueryInterface,
IDirectXFileSaveObjectImpl_AddRef, IDirectXFileSaveObjectImpl_AddRef,
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#ifndef __D3DXOF_PRIVATE_INCLUDED__ #ifndef __D3DXOF_PRIVATE_INCLUDED__
#define __D3DXOF_PRIVATE_INCLUDED__ #define __D3DXOF_PRIVATE_INCLUDED__
#define CONST_VTABLE
#include <stdarg.h> #include <stdarg.h>
#include "windef.h" #include "windef.h"
......
...@@ -137,7 +137,7 @@ static HRESULT WINAPI XFCF_LockServer(LPCLASSFACTORY iface, BOOL dolock) ...@@ -137,7 +137,7 @@ static HRESULT WINAPI XFCF_LockServer(LPCLASSFACTORY iface, BOOL dolock)
return S_OK; return S_OK;
} }
static IClassFactoryVtbl XFCF_Vtbl = static const IClassFactoryVtbl XFCF_Vtbl =
{ {
XFCF_QueryInterface, XFCF_QueryInterface,
XFCF_AddRef, XFCF_AddRef,
......
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
...@@ -2573,7 +2576,7 @@ GL_IDirect3DDeviceImpl_7_SetViewport(LPDIRECT3DDEVICE7 iface, ...@@ -2573,7 +2576,7 @@ GL_IDirect3DDeviceImpl_7_SetViewport(LPDIRECT3DDEVICE7 iface,
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DDevice7Vtbl VTABLE_IDirect3DDevice7 = static const IDirect3DDevice7Vtbl VTABLE_IDirect3DDevice7 =
{ {
XCAST(QueryInterface) Main_IDirect3DDeviceImpl_7_3T_2T_1T_QueryInterface, XCAST(QueryInterface) Main_IDirect3DDeviceImpl_7_3T_2T_1T_QueryInterface,
XCAST(AddRef) Main_IDirect3DDeviceImpl_7_3T_2T_1T_AddRef, XCAST(AddRef) Main_IDirect3DDeviceImpl_7_3T_2T_1T_AddRef,
...@@ -2637,7 +2640,7 @@ IDirect3DDevice7Vtbl VTABLE_IDirect3DDevice7 = ...@@ -2637,7 +2640,7 @@ IDirect3DDevice7Vtbl VTABLE_IDirect3DDevice7 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DDevice3Vtbl VTABLE_IDirect3DDevice3 = static const IDirect3DDevice3Vtbl VTABLE_IDirect3DDevice3 =
{ {
XCAST(QueryInterface) Thunk_IDirect3DDeviceImpl_3_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DDeviceImpl_3_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DDeviceImpl_3_AddRef, XCAST(AddRef) Thunk_IDirect3DDeviceImpl_3_AddRef,
...@@ -2694,7 +2697,7 @@ IDirect3DDevice3Vtbl VTABLE_IDirect3DDevice3 = ...@@ -2694,7 +2697,7 @@ IDirect3DDevice3Vtbl VTABLE_IDirect3DDevice3 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DDevice2Vtbl VTABLE_IDirect3DDevice2 = static const IDirect3DDevice2Vtbl VTABLE_IDirect3DDevice2 =
{ {
XCAST(QueryInterface) Thunk_IDirect3DDeviceImpl_2_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DDeviceImpl_2_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DDeviceImpl_2_AddRef, XCAST(AddRef) Thunk_IDirect3DDeviceImpl_2_AddRef,
...@@ -2742,7 +2745,7 @@ IDirect3DDevice2Vtbl VTABLE_IDirect3DDevice2 = ...@@ -2742,7 +2745,7 @@ IDirect3DDevice2Vtbl VTABLE_IDirect3DDevice2 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DDeviceVtbl VTABLE_IDirect3DDevice = static const IDirect3DDeviceVtbl VTABLE_IDirect3DDevice =
{ {
XCAST(QueryInterface) Thunk_IDirect3DDeviceImpl_1_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DDeviceImpl_1_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DDeviceImpl_1_AddRef, XCAST(AddRef) Thunk_IDirect3DDeviceImpl_1_AddRef,
......
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
...@@ -654,7 +657,7 @@ Main_IDirect3DExecuteBufferImpl_1_Optimize(LPDIRECT3DEXECUTEBUFFER iface, ...@@ -654,7 +657,7 @@ Main_IDirect3DExecuteBufferImpl_1_Optimize(LPDIRECT3DEXECUTEBUFFER iface,
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DExecuteBufferVtbl VTABLE_IDirect3DExecuteBuffer = static const IDirect3DExecuteBufferVtbl VTABLE_IDirect3DExecuteBuffer =
{ {
XCAST(QueryInterface) Main_IDirect3DExecuteBufferImpl_1_QueryInterface, XCAST(QueryInterface) Main_IDirect3DExecuteBufferImpl_1_QueryInterface,
XCAST(AddRef) Main_IDirect3DExecuteBufferImpl_1_AddRef, XCAST(AddRef) Main_IDirect3DExecuteBufferImpl_1_AddRef,
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
...@@ -215,7 +218,7 @@ GL_IDirect3DLightImpl_1_Release(LPDIRECT3DLIGHT iface) ...@@ -215,7 +218,7 @@ GL_IDirect3DLightImpl_1_Release(LPDIRECT3DLIGHT iface)
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DLightVtbl VTABLE_IDirect3DLight = static const IDirect3DLightVtbl VTABLE_IDirect3DLight =
{ {
XCAST(QueryInterface) Main_IDirect3DLightImpl_1_QueryInterface, XCAST(QueryInterface) Main_IDirect3DLightImpl_1_QueryInterface,
XCAST(AddRef) Main_IDirect3DLightImpl_1_AddRef, XCAST(AddRef) Main_IDirect3DLightImpl_1_AddRef,
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
...@@ -332,7 +335,7 @@ static void activate(IDirect3DMaterialImpl* This) { ...@@ -332,7 +335,7 @@ static void activate(IDirect3DMaterialImpl* This) {
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DMaterial3Vtbl VTABLE_IDirect3DMaterial3 = static const IDirect3DMaterial3Vtbl VTABLE_IDirect3DMaterial3 =
{ {
XCAST(QueryInterface) Main_IDirect3DMaterialImpl_3_2T_1T_QueryInterface, XCAST(QueryInterface) Main_IDirect3DMaterialImpl_3_2T_1T_QueryInterface,
XCAST(AddRef) Main_IDirect3DMaterialImpl_3_2T_1T_AddRef, XCAST(AddRef) Main_IDirect3DMaterialImpl_3_2T_1T_AddRef,
...@@ -353,7 +356,7 @@ IDirect3DMaterial3Vtbl VTABLE_IDirect3DMaterial3 = ...@@ -353,7 +356,7 @@ IDirect3DMaterial3Vtbl VTABLE_IDirect3DMaterial3 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DMaterial2Vtbl VTABLE_IDirect3DMaterial2 = static const IDirect3DMaterial2Vtbl VTABLE_IDirect3DMaterial2 =
{ {
XCAST(QueryInterface) Thunk_IDirect3DMaterialImpl_2_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DMaterialImpl_2_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DMaterialImpl_2_AddRef, XCAST(AddRef) Thunk_IDirect3DMaterialImpl_2_AddRef,
...@@ -374,7 +377,7 @@ IDirect3DMaterial2Vtbl VTABLE_IDirect3DMaterial2 = ...@@ -374,7 +377,7 @@ IDirect3DMaterial2Vtbl VTABLE_IDirect3DMaterial2 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DMaterialVtbl VTABLE_IDirect3DMaterial = static const IDirect3DMaterialVtbl VTABLE_IDirect3DMaterial =
{ {
XCAST(QueryInterface) Thunk_IDirect3DMaterialImpl_1_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DMaterialImpl_1_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DMaterialImpl_1_AddRef, XCAST(AddRef) Thunk_IDirect3DMaterialImpl_1_AddRef,
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
...@@ -823,7 +826,7 @@ Thunk_IDirect3DTextureImpl_1_Load(LPDIRECT3DTEXTURE iface, ...@@ -823,7 +826,7 @@ Thunk_IDirect3DTextureImpl_1_Load(LPDIRECT3DTEXTURE iface,
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DTexture2Vtbl VTABLE_IDirect3DTexture2 = static const IDirect3DTexture2Vtbl VTABLE_IDirect3DTexture2 =
{ {
XCAST(QueryInterface) Thunk_IDirect3DTextureImpl_2_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DTextureImpl_2_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DTextureImpl_2_AddRef, XCAST(AddRef) Thunk_IDirect3DTextureImpl_2_AddRef,
...@@ -844,7 +847,7 @@ IDirect3DTexture2Vtbl VTABLE_IDirect3DTexture2 = ...@@ -844,7 +847,7 @@ IDirect3DTexture2Vtbl VTABLE_IDirect3DTexture2 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DTextureVtbl VTABLE_IDirect3DTexture = static const IDirect3DTextureVtbl VTABLE_IDirect3DTexture =
{ {
XCAST(QueryInterface) Thunk_IDirect3DTextureImpl_1_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DTextureImpl_1_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DTextureImpl_1_AddRef, XCAST(AddRef) Thunk_IDirect3DTextureImpl_1_AddRef,
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
...@@ -475,7 +477,7 @@ GL_IDirect3DVertexBufferImpl_7_ProcessVerticesStrided(LPDIRECT3DVERTEXBUFFER7 if ...@@ -475,7 +477,7 @@ GL_IDirect3DVertexBufferImpl_7_ProcessVerticesStrided(LPDIRECT3DVERTEXBUFFER7 if
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DVertexBuffer7Vtbl VTABLE_IDirect3DVertexBuffer7 = static const IDirect3DVertexBuffer7Vtbl VTABLE_IDirect3DVertexBuffer7 =
{ {
XCAST(QueryInterface) Main_IDirect3DVertexBufferImpl_7_1T_QueryInterface, XCAST(QueryInterface) Main_IDirect3DVertexBufferImpl_7_1T_QueryInterface,
XCAST(AddRef) Main_IDirect3DVertexBufferImpl_7_1T_AddRef, XCAST(AddRef) Main_IDirect3DVertexBufferImpl_7_1T_AddRef,
...@@ -499,7 +501,7 @@ IDirect3DVertexBuffer7Vtbl VTABLE_IDirect3DVertexBuffer7 = ...@@ -499,7 +501,7 @@ IDirect3DVertexBuffer7Vtbl VTABLE_IDirect3DVertexBuffer7 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DVertexBufferVtbl VTABLE_IDirect3DVertexBuffer = static const IDirect3DVertexBufferVtbl VTABLE_IDirect3DVertexBuffer =
{ {
XCAST(QueryInterface) Thunk_IDirect3DVertexBufferImpl_1_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DVertexBufferImpl_1_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DVertexBufferImpl_1_AddRef, XCAST(AddRef) Thunk_IDirect3DVertexBufferImpl_1_AddRef,
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
...@@ -483,7 +486,7 @@ Main_IDirect3DViewportImpl_3_Clear2(LPDIRECT3DVIEWPORT3 iface, ...@@ -483,7 +486,7 @@ Main_IDirect3DViewportImpl_3_Clear2(LPDIRECT3DVIEWPORT3 iface,
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DViewport3Vtbl VTABLE_IDirect3DViewport3 = static const IDirect3DViewport3Vtbl VTABLE_IDirect3DViewport3 =
{ {
XCAST(QueryInterface) Main_IDirect3DViewportImpl_3_2_1_QueryInterface, XCAST(QueryInterface) Main_IDirect3DViewportImpl_3_2_1_QueryInterface,
XCAST(AddRef) Main_IDirect3DViewportImpl_3_2_1_AddRef, XCAST(AddRef) Main_IDirect3DViewportImpl_3_2_1_AddRef,
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
...@@ -42,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddraw); ...@@ -42,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
* DirectDrawCreateClipper (DDRAW.@) * DirectDrawCreateClipper (DDRAW.@)
*/ */
static IDirectDrawClipperVtbl DDRAW_Clipper_VTable; static const IDirectDrawClipperVtbl DDRAW_Clipper_VTable;
HRESULT WINAPI DirectDrawCreateClipper( HRESULT WINAPI DirectDrawCreateClipper(
DWORD dwFlags, LPDIRECTDRAWCLIPPER *lplpDDClipper, LPUNKNOWN pUnkOuter DWORD dwFlags, LPDIRECTDRAWCLIPPER *lplpDDClipper, LPUNKNOWN pUnkOuter
...@@ -271,7 +273,7 @@ HRESULT WINAPI Main_DirectDrawClipper_IsClipListChanged( ...@@ -271,7 +273,7 @@ HRESULT WINAPI Main_DirectDrawClipper_IsClipListChanged(
return DD_OK; return DD_OK;
} }
static IDirectDrawClipperVtbl DDRAW_Clipper_VTable = static const IDirectDrawClipperVtbl DDRAW_Clipper_VTable =
{ {
Main_DirectDrawClipper_QueryInterface, Main_DirectDrawClipper_QueryInterface,
Main_DirectDrawClipper_AddRef, Main_DirectDrawClipper_AddRef,
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#define CONST_VTABLE
#include "wine/debug.h" #include "wine/debug.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
...@@ -45,7 +47,7 @@ ...@@ -45,7 +47,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
static IDirectDraw7Vtbl HAL_DirectDraw_VTable; static const IDirectDraw7Vtbl HAL_DirectDraw_VTable;
static DDVERSIONDATA hal_version; static DDVERSIONDATA hal_version;
static DD32BITDRIVERDATA hal_driverdata; static DD32BITDRIVERDATA hal_driverdata;
...@@ -553,7 +555,7 @@ HAL_DirectDraw_GetFourCCCodes(LPDIRECTDRAW7 iface, LPDWORD pNumCodes, ...@@ -553,7 +555,7 @@ HAL_DirectDraw_GetFourCCCodes(LPDIRECTDRAW7 iface, LPDWORD pNumCodes,
} }
static IDirectDraw7Vtbl HAL_DirectDraw_VTable = static const IDirectDraw7Vtbl HAL_DirectDraw_VTable =
{ {
Main_DirectDraw_QueryInterface, Main_DirectDraw_QueryInterface,
Main_DirectDraw_AddRef, Main_DirectDraw_AddRef,
......
...@@ -55,6 +55,9 @@ ...@@ -55,6 +55,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "winerror.h" #include "winerror.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
...@@ -74,9 +77,9 @@ ...@@ -74,9 +77,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
extern IDirectDrawVtbl DDRAW_IDirectDraw_VTable; extern const IDirectDrawVtbl DDRAW_IDirectDraw_VTable;
extern IDirectDraw2Vtbl DDRAW_IDirectDraw2_VTable; extern const IDirectDraw2Vtbl DDRAW_IDirectDraw2_VTable;
extern IDirectDraw4Vtbl DDRAW_IDirectDraw4_VTable; extern const IDirectDraw4Vtbl DDRAW_IDirectDraw4_VTable;
static void DDRAW_UnsubclassWindow(IDirectDrawImpl* This); static void DDRAW_UnsubclassWindow(IDirectDrawImpl* This);
...@@ -1437,7 +1440,7 @@ void Uninit_DirectDraw_final_release(IDirectDrawImpl *This) ...@@ -1437,7 +1440,7 @@ void Uninit_DirectDraw_final_release(IDirectDrawImpl *This)
Main_DirectDraw_final_release(This); Main_DirectDraw_final_release(This);
} }
static IDirectDraw7Vtbl Uninit_DirectDraw_VTable; static const IDirectDraw7Vtbl Uninit_DirectDraw_VTable;
/* Not called from the vtable. */ /* Not called from the vtable. */
HRESULT Uninit_DirectDraw_Construct(IDirectDrawImpl *This, BOOL ex) HRESULT Uninit_DirectDraw_Construct(IDirectDrawImpl *This, BOOL ex)
...@@ -1677,7 +1680,7 @@ Uninit_DirectDraw_EvaluateMode(LPDIRECTDRAW7 iface, DWORD dwFlags, ...@@ -1677,7 +1680,7 @@ Uninit_DirectDraw_EvaluateMode(LPDIRECTDRAW7 iface, DWORD dwFlags,
return DDERR_NOTINITIALIZED; return DDERR_NOTINITIALIZED;
} }
static IDirectDraw7Vtbl Uninit_DirectDraw_VTable = static const IDirectDraw7Vtbl Uninit_DirectDraw_VTable =
{ {
Main_DirectDraw_QueryInterface, Main_DirectDraw_QueryInterface,
Main_DirectDraw_AddRef, Main_DirectDraw_AddRef,
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
*/ */
#include <stdarg.h> #include <stdarg.h>
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
...@@ -942,7 +944,7 @@ IDirectDraw4Impl_GetDeviceIdentifier(LPDIRECTDRAW4 This, ...@@ -942,7 +944,7 @@ IDirectDraw4Impl_GetDeviceIdentifier(LPDIRECTDRAW4 This,
return hr; return hr;
} }
IDirectDrawVtbl DDRAW_IDirectDraw_VTable = const IDirectDrawVtbl DDRAW_IDirectDraw_VTable =
{ {
IDirectDrawImpl_QueryInterface, IDirectDrawImpl_QueryInterface,
IDirectDrawImpl_AddRef, IDirectDrawImpl_AddRef,
...@@ -969,7 +971,7 @@ IDirectDrawVtbl DDRAW_IDirectDraw_VTable = ...@@ -969,7 +971,7 @@ IDirectDrawVtbl DDRAW_IDirectDraw_VTable =
IDirectDrawImpl_WaitForVerticalBlank, IDirectDrawImpl_WaitForVerticalBlank,
}; };
IDirectDraw2Vtbl DDRAW_IDirectDraw2_VTable = const IDirectDraw2Vtbl DDRAW_IDirectDraw2_VTable =
{ {
IDirectDraw2Impl_QueryInterface, IDirectDraw2Impl_QueryInterface,
IDirectDraw2Impl_AddRef, IDirectDraw2Impl_AddRef,
...@@ -997,7 +999,7 @@ IDirectDraw2Vtbl DDRAW_IDirectDraw2_VTable = ...@@ -997,7 +999,7 @@ IDirectDraw2Vtbl DDRAW_IDirectDraw2_VTable =
IDirectDraw2Impl_GetAvailableVidMem IDirectDraw2Impl_GetAvailableVidMem
}; };
IDirectDraw4Vtbl DDRAW_IDirectDraw4_VTable = const IDirectDraw4Vtbl DDRAW_IDirectDraw4_VTable =
{ {
IDirectDraw4Impl_QueryInterface, IDirectDraw4Impl_QueryInterface,
IDirectDraw4Impl_AddRef, IDirectDraw4Impl_AddRef,
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
...@@ -42,7 +45,7 @@ ...@@ -42,7 +45,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
static IDirectDraw7Vtbl User_DirectDraw_VTable; static const IDirectDraw7Vtbl User_DirectDraw_VTable;
static const DDDEVICEIDENTIFIER2 user_device = static const DDDEVICEIDENTIFIER2 user_device =
{ {
...@@ -531,7 +534,7 @@ User_DirectDraw_SetDisplayMode(LPDIRECTDRAW7 iface, DWORD dwWidth, ...@@ -531,7 +534,7 @@ User_DirectDraw_SetDisplayMode(LPDIRECTDRAW7 iface, DWORD dwWidth,
/* TestCooperativeLevel: generic? */ /* TestCooperativeLevel: generic? */
/* WaitForVerticalBlank: ??? */ /* WaitForVerticalBlank: ??? */
static IDirectDraw7Vtbl User_DirectDraw_VTable = static const IDirectDraw7Vtbl User_DirectDraw_VTable =
{ {
Main_DirectDraw_QueryInterface, Main_DirectDraw_QueryInterface,
Main_DirectDraw_AddRef, Main_DirectDraw_AddRef,
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
...@@ -318,7 +321,7 @@ static void light_released(IDirectDrawImpl *This, GLenum light_num) ...@@ -318,7 +321,7 @@ static void light_released(IDirectDrawImpl *This, GLenum light_num)
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3D7Vtbl VTABLE_IDirect3D7 = static const IDirect3D7Vtbl VTABLE_IDirect3D7 =
{ {
XCAST(QueryInterface) Thunk_IDirect3DImpl_7_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DImpl_7_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DImpl_7_AddRef, XCAST(AddRef) Thunk_IDirect3DImpl_7_AddRef,
...@@ -341,7 +344,7 @@ IDirect3D7Vtbl VTABLE_IDirect3D7 = ...@@ -341,7 +344,7 @@ IDirect3D7Vtbl VTABLE_IDirect3D7 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3D3Vtbl VTABLE_IDirect3D3 = static const IDirect3D3Vtbl VTABLE_IDirect3D3 =
{ {
XCAST(QueryInterface) Thunk_IDirect3DImpl_3_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DImpl_3_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DImpl_3_AddRef, XCAST(AddRef) Thunk_IDirect3DImpl_3_AddRef,
...@@ -368,7 +371,7 @@ IDirect3D3Vtbl VTABLE_IDirect3D3 = ...@@ -368,7 +371,7 @@ IDirect3D3Vtbl VTABLE_IDirect3D3 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3D2Vtbl VTABLE_IDirect3D2 = static const IDirect3D2Vtbl VTABLE_IDirect3D2 =
{ {
XCAST(QueryInterface) Thunk_IDirect3DImpl_2_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DImpl_2_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DImpl_2_AddRef, XCAST(AddRef) Thunk_IDirect3DImpl_2_AddRef,
...@@ -392,7 +395,7 @@ IDirect3D2Vtbl VTABLE_IDirect3D2 = ...@@ -392,7 +395,7 @@ IDirect3D2Vtbl VTABLE_IDirect3D2 =
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
IDirect3DVtbl VTABLE_IDirect3D = static const IDirect3DVtbl VTABLE_IDirect3D =
{ {
XCAST(QueryInterface) Thunk_IDirect3DImpl_1_QueryInterface, XCAST(QueryInterface) Thunk_IDirect3DImpl_1_QueryInterface,
XCAST(AddRef) Thunk_IDirect3DImpl_1_AddRef, XCAST(AddRef) Thunk_IDirect3DImpl_1_AddRef,
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define CONST_VTABLE
#include "ddraw_private.h" #include "ddraw_private.h"
#include "dpalette/main.h" #include "dpalette/main.h"
#include "dpalette/hal.h" #include "dpalette/hal.h"
...@@ -31,7 +33,7 @@ ...@@ -31,7 +33,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
static IDirectDrawPaletteVtbl DDRAW_HAL_Palette_VTable; static const IDirectDrawPaletteVtbl DDRAW_HAL_Palette_VTable;
/****************************************************************************** /******************************************************************************
* IDirectDrawPalette * IDirectDrawPalette
...@@ -125,7 +127,7 @@ void HAL_DirectDrawPalette_final_release(IDirectDrawPaletteImpl* This) ...@@ -125,7 +127,7 @@ void HAL_DirectDrawPalette_final_release(IDirectDrawPaletteImpl* This)
Main_DirectDrawPalette_final_release(This); Main_DirectDrawPalette_final_release(This);
} }
static IDirectDrawPaletteVtbl DDRAW_HAL_Palette_VTable = static const IDirectDrawPaletteVtbl DDRAW_HAL_Palette_VTable =
{ {
Main_DirectDrawPalette_QueryInterface, Main_DirectDrawPalette_QueryInterface,
Main_DirectDrawPalette_AddRef, Main_DirectDrawPalette_AddRef,
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#define CONST_VTABLE
#include "ddraw_private.h" #include "ddraw_private.h"
#include "dpalette/main.h" #include "dpalette/main.h"
#include "ddraw/main.h" #include "ddraw/main.h"
...@@ -36,7 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddraw); ...@@ -36,7 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
/* For unsigned x. 0 is not a power of 2. */ /* For unsigned x. 0 is not a power of 2. */
#define IS_POW_2(x) (((x) & ((x) - 1)) == 0) #define IS_POW_2(x) (((x) & ((x) - 1)) == 0)
static IDirectDrawPaletteVtbl DDRAW_Main_Palette_VTable; static const IDirectDrawPaletteVtbl DDRAW_Main_Palette_VTable;
/****************************************************************************** /******************************************************************************
* IDirectDrawPalette * IDirectDrawPalette
...@@ -271,7 +273,7 @@ Main_DirectDrawPalette_QueryInterface(LPDIRECTDRAWPALETTE iface, ...@@ -271,7 +273,7 @@ Main_DirectDrawPalette_QueryInterface(LPDIRECTDRAWPALETTE iface,
} }
} }
static IDirectDrawPaletteVtbl DDRAW_Main_Palette_VTable = static const IDirectDrawPaletteVtbl DDRAW_Main_Palette_VTable =
{ {
Main_DirectDrawPalette_QueryInterface, Main_DirectDrawPalette_QueryInterface,
Main_DirectDrawPalette_AddRef, Main_DirectDrawPalette_AddRef,
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "winerror.h" #include "winerror.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "ddraw_private.h" #include "ddraw_private.h"
...@@ -40,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddraw); ...@@ -40,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
extern HBITMAP DIB_CreateDIBSection( HDC hdc, const BITMAPINFO *bmi, UINT usage, VOID **bits, extern HBITMAP DIB_CreateDIBSection( HDC hdc, const BITMAPINFO *bmi, UINT usage, VOID **bits,
HANDLE section, DWORD offset, DWORD ovr_pitch ); HANDLE section, DWORD offset, DWORD ovr_pitch );
static IDirectDrawSurface7Vtbl DIB_IDirectDrawSurface7_VTable; static const IDirectDrawSurface7Vtbl DIB_IDirectDrawSurface7_VTable;
/* Return the width of a DIB bitmap in bytes. DIB bitmap data is 32-bit aligned. */ /* Return the width of a DIB bitmap in bytes. DIB bitmap data is 32-bit aligned. */
inline static int get_dib_width_bytes( int width, int depth ) inline static int get_dib_width_bytes( int width, int depth )
...@@ -1408,7 +1411,7 @@ DIB_DirectDrawSurface_SetSurfaceDesc(LPDIRECTDRAWSURFACE7 iface, ...@@ -1408,7 +1411,7 @@ DIB_DirectDrawSurface_SetSurfaceDesc(LPDIRECTDRAWSURFACE7 iface,
/* UpdateOverlayDisplay: generic */ /* UpdateOverlayDisplay: generic */
/* UpdateOverlayZOrder: generic */ /* UpdateOverlayZOrder: generic */
static IDirectDrawSurface7Vtbl DIB_IDirectDrawSurface7_VTable = static const IDirectDrawSurface7Vtbl DIB_IDirectDrawSurface7_VTable =
{ {
Main_DirectDrawSurface_QueryInterface, Main_DirectDrawSurface_QueryInterface,
Main_DirectDrawSurface_AddRef, Main_DirectDrawSurface_AddRef,
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
...@@ -46,7 +49,7 @@ ...@@ -46,7 +49,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
static IDirectDrawSurface7Vtbl FakeZBuffer_IDirectDrawSurface7_VTable; static const IDirectDrawSurface7Vtbl FakeZBuffer_IDirectDrawSurface7_VTable;
#ifdef HAVE_OPENGL #ifdef HAVE_OPENGL
static void zbuffer_lock_update(IDirectDrawSurfaceImpl* This, LPCRECT pRect, DWORD dwFlags) static void zbuffer_lock_update(IDirectDrawSurfaceImpl* This, LPCRECT pRect, DWORD dwFlags)
...@@ -259,7 +262,7 @@ FakeZBuffer_DirectDrawSurface_SetSurfaceDesc(LPDIRECTDRAWSURFACE7 iface, ...@@ -259,7 +262,7 @@ FakeZBuffer_DirectDrawSurface_SetSurfaceDesc(LPDIRECTDRAWSURFACE7 iface,
} }
static IDirectDrawSurface7Vtbl FakeZBuffer_IDirectDrawSurface7_VTable= static const IDirectDrawSurface7Vtbl FakeZBuffer_IDirectDrawSurface7_VTable=
{ {
Main_DirectDrawSurface_QueryInterface, Main_DirectDrawSurface_QueryInterface,
Main_DirectDrawSurface_AddRef, Main_DirectDrawSurface_AddRef,
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#define CONST_VTABLE
#include "wine/debug.h" #include "wine/debug.h"
#include "ddraw_private.h" #include "ddraw_private.h"
#include "dsurface/main.h" #include "dsurface/main.h"
...@@ -70,7 +72,7 @@ DirectDrawGammaControl_SetGammaRamp(LPDIRECTDRAWGAMMACONTROL iface, DWORD dwFlag ...@@ -70,7 +72,7 @@ DirectDrawGammaControl_SetGammaRamp(LPDIRECTDRAWGAMMACONTROL iface, DWORD dwFlag
return This->set_gamma_ramp(This, dwFlags, lpGammaRamp); return This->set_gamma_ramp(This, dwFlags, lpGammaRamp);
} }
IDirectDrawGammaControlVtbl DDRAW_IDDGC_VTable = const IDirectDrawGammaControlVtbl DDRAW_IDDGC_VTable =
{ {
DirectDrawGammaControl_QueryInterface, DirectDrawGammaControl_QueryInterface,
DirectDrawGammaControl_AddRef, DirectDrawGammaControl_AddRef,
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define CONST_VTABLE
#include "wine/debug.h" #include "wine/debug.h"
#include "ddraw_private.h" #include "ddraw_private.h"
#include "ddraw/user.h" #include "ddraw/user.h"
...@@ -35,7 +38,7 @@ ...@@ -35,7 +38,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(ddraw); WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
static IDirectDrawSurface7Vtbl HAL_IDirectDrawSurface7_VTable; static const IDirectDrawSurface7Vtbl HAL_IDirectDrawSurface7_VTable;
static HRESULT HAL_DirectDrawSurface_create_surface(IDirectDrawSurfaceImpl* This, static HRESULT HAL_DirectDrawSurface_create_surface(IDirectDrawSurfaceImpl* This,
IDirectDrawImpl* pDD) IDirectDrawImpl* pDD)
...@@ -362,7 +365,7 @@ HWND HAL_DirectDrawSurface_get_display_window(IDirectDrawSurfaceImpl* This) ...@@ -362,7 +365,7 @@ HWND HAL_DirectDrawSurface_get_display_window(IDirectDrawSurfaceImpl* This)
return 0; return 0;
} }
static IDirectDrawSurface7Vtbl HAL_IDirectDrawSurface7_VTable = static const IDirectDrawSurface7Vtbl HAL_IDirectDrawSurface7_VTable =
{ {
Main_DirectDrawSurface_QueryInterface, Main_DirectDrawSurface_QueryInterface,
Main_DirectDrawSurface_AddRef, Main_DirectDrawSurface_AddRef,
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <string.h> #include <string.h>
#define COBJMACROS #define COBJMACROS
#define CONST_VTABLE
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
......
...@@ -45,7 +45,7 @@ typedef struct PrivateData ...@@ -45,7 +45,7 @@ typedef struct PrivateData
DWORD size; DWORD size;
} PrivateData; } PrivateData;
extern IDirectDrawGammaControlVtbl DDRAW_IDDGC_VTable; extern const IDirectDrawGammaControlVtbl DDRAW_IDDGC_VTable;
/* Non-interface functions */ /* Non-interface functions */
HRESULT HRESULT
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#include "config.h" #include "config.h"
#include <stdarg.h> #include <stdarg.h>
#define CONST_VTABLE
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
...@@ -390,7 +392,7 @@ IDirectDrawSurface3Impl_SetSurfaceDesc(LPDIRECTDRAWSURFACE3 This, ...@@ -390,7 +392,7 @@ IDirectDrawSurface3Impl_SetSurfaceDesc(LPDIRECTDRAWSURFACE3 This,
dwFlags); dwFlags);
} }
IDirectDrawSurface3Vtbl DDRAW_IDDS3_Thunk_VTable = const IDirectDrawSurface3Vtbl DDRAW_IDDS3_Thunk_VTable =
{ {
IDirectDrawSurface3Impl_QueryInterface, IDirectDrawSurface3Impl_QueryInterface,
IDirectDrawSurface3Impl_AddRef, IDirectDrawSurface3Impl_AddRef,
......
...@@ -19,6 +19,6 @@ ...@@ -19,6 +19,6 @@
#ifndef DDRAW_DSURFACE_THUNKS_H_INCLUDED #ifndef DDRAW_DSURFACE_THUNKS_H_INCLUDED
#define DDRAW_DSURFACE_THUNKS_H_INCLUDED #define DDRAW_DSURFACE_THUNKS_H_INCLUDED
extern IDirectDrawSurface3Vtbl DDRAW_IDDS3_Thunk_VTable; extern const IDirectDrawSurface3Vtbl DDRAW_IDDS3_Thunk_VTable;
#endif #endif
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define CONST_VTABLE
#include "winerror.h" #include "winerror.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "ddraw_private.h" #include "ddraw_private.h"
...@@ -52,7 +54,7 @@ static void User_copy_to_screen(IDirectDrawSurfaceImpl* This, LPCRECT rc); ...@@ -52,7 +54,7 @@ static void User_copy_to_screen(IDirectDrawSurfaceImpl* This, LPCRECT rc);
static HWND get_display_window(IDirectDrawSurfaceImpl* This, LPPOINT pt); static HWND get_display_window(IDirectDrawSurfaceImpl* This, LPPOINT pt);
static IDirectDrawSurface7Vtbl User_IDirectDrawSurface7_VTable; static const IDirectDrawSurface7Vtbl User_IDirectDrawSurface7_VTable;
HRESULT HRESULT
User_DirectDrawSurface_Construct(IDirectDrawSurfaceImpl* This, User_DirectDrawSurface_Construct(IDirectDrawSurfaceImpl* This,
...@@ -625,7 +627,7 @@ static void User_copy_from_screen(IDirectDrawSurfaceImpl* This, LPCRECT rc) ...@@ -625,7 +627,7 @@ static void User_copy_from_screen(IDirectDrawSurfaceImpl* This, LPCRECT rc)
} }
#endif #endif
static IDirectDrawSurface7Vtbl User_IDirectDrawSurface7_VTable = static const IDirectDrawSurface7Vtbl User_IDirectDrawSurface7_VTable =
{ {
Main_DirectDrawSurface_QueryInterface, Main_DirectDrawSurface_QueryInterface,
Main_DirectDrawSurface_AddRef, Main_DirectDrawSurface_AddRef,
......
...@@ -534,7 +534,7 @@ static HRESULT WINAPI DDCF_LockServer(LPCLASSFACTORY iface,BOOL dolock) ...@@ -534,7 +534,7 @@ static HRESULT WINAPI DDCF_LockServer(LPCLASSFACTORY iface,BOOL dolock)
return S_OK; return S_OK;
} }
static IClassFactoryVtbl DDCF_Vtbl = static const IClassFactoryVtbl DDCF_Vtbl =
{ {
DDCF_QueryInterface, DDCF_QueryInterface,
DDCF_AddRef, DDCF_AddRef,
......
...@@ -251,8 +251,8 @@ ...@@ -251,8 +251,8 @@
#define CONST_VTBL const #define CONST_VTBL const
#define DECLARE_INTERFACE(iface) \ #define DECLARE_INTERFACE(iface) \
/*typedef*/ interface iface { const struct iface##Vtbl *lpVtbl; } /*iface*/; \ /*typedef*/ interface iface { const struct iface##Vtbl *lpVtbl; } /*iface*/; \
typedef const struct iface##Vtbl iface##Vtbl; \ typedef struct iface##Vtbl iface##Vtbl; \
const struct iface##Vtbl struct iface##Vtbl
#else #else
#undef CONST_VTBL #undef CONST_VTBL
#define CONST_VTBL #define CONST_VTBL
......
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