shdocvw: Constify IExplore OLE vtables.

This commit is contained in:
Dmitry Timoshkov 2006-04-10 15:30:46 +09:00 committed by Alexandre Julliard
parent 3afe420833
commit 09a1a3fd7c
1 changed files with 7 additions and 7 deletions

View File

@ -37,7 +37,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw); WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
typedef struct tag_ieoc { typedef struct tag_ieoc {
IOleContainerVtbl *lpVtbl; const IOleContainerVtbl *lpVtbl;
LONG ref; LONG ref;
} ieoc; } ieoc;
@ -99,7 +99,7 @@ static HRESULT WINAPI ic_LockContainer(IOleContainer *iface, BOOL fLock)
return E_NOTIMPL; return E_NOTIMPL;
} }
static IOleContainerVtbl ocVtbl = static const IOleContainerVtbl ocVtbl =
{ {
ic_QueryInterface, ic_QueryInterface,
ic_AddRef, ic_AddRef,
@ -128,8 +128,8 @@ static IOleContainer * get_container(void)
/**********************/ /**********************/
typedef struct tag_iecs { typedef struct tag_iecs {
IOleClientSiteVtbl *lpVtbl; const IOleClientSiteVtbl *lpVtbl;
IOleInPlaceSiteVtbl *lpInPlaceVtbl; const IOleInPlaceSiteVtbl *lpInPlaceVtbl;
LONG ref; LONG ref;
IOleContainer *container; IOleContainer *container;
HWND hwnd; HWND hwnd;
@ -248,7 +248,7 @@ static HRESULT WINAPI cs_RequestNewObjectLayout(IOleClientSite *iface)
return E_NOTIMPL; return E_NOTIMPL;
} }
struct IOleClientSiteVtbl csVtbl = static const IOleClientSiteVtbl csVtbl =
{ {
cs_QueryInterface, cs_QueryInterface,
cs_AddRef, cs_AddRef,
@ -362,7 +362,7 @@ static HRESULT WINAPI is_DiscardUndoState(IOleInPlaceSite *iface)
return E_NOTIMPL; return E_NOTIMPL;
} }
struct IOleInPlaceSiteVtbl isVtbl = static const IOleInPlaceSiteVtbl isVtbl =
{ {
is_QueryInterface, is_QueryInterface,
is_AddRef, is_AddRef,
@ -383,7 +383,7 @@ static const WCHAR szIEWinFrame[] = { 'I','E','F','r','a','m','e',0 };
static LRESULT iewnd_OnCreate(HWND hwnd, LPCREATESTRUCTW lpcs) static LRESULT iewnd_OnCreate(HWND hwnd, LPCREATESTRUCTW lpcs)
{ {
SetWindowLongPtrW(hwnd, 0, (LONG) lpcs->lpCreateParams); SetWindowLongPtrW(hwnd, 0, (LONG_PTR) lpcs->lpCreateParams);
return 0; return 0;
} }