Constify IExplore OLE vtables
Dmitry Timoshkov
dmitry at codeweavers.com
Mon Apr 10 01:30:46 CDT 2006
Hello,
Changelog:
Constify IExplore OLE vtables.
--- cvs/hq/wine/dlls/shdocvw/iexplore.c 2006-04-07 22:06:45.000000000 +0900
+++ wine/dlls/shdocvw/iexplore.c 2006-04-10 13:04:56.000000000 +0900
@@ -37,7 +37,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
typedef struct tag_ieoc {
- IOleContainerVtbl *lpVtbl;
+ const IOleContainerVtbl *lpVtbl;
LONG ref;
} ieoc;
@@ -99,7 +99,7 @@ static HRESULT WINAPI ic_LockContainer(I
return E_NOTIMPL;
}
-static IOleContainerVtbl ocVtbl =
+static const IOleContainerVtbl ocVtbl =
{
ic_QueryInterface,
ic_AddRef,
@@ -128,8 +128,8 @@ static IOleContainer * get_container(voi
/**********************/
typedef struct tag_iecs {
- IOleClientSiteVtbl *lpVtbl;
- IOleInPlaceSiteVtbl *lpInPlaceVtbl;
+ const IOleClientSiteVtbl *lpVtbl;
+ const IOleInPlaceSiteVtbl *lpInPlaceVtbl;
LONG ref;
IOleContainer *container;
HWND hwnd;
@@ -248,7 +248,7 @@ static HRESULT WINAPI cs_RequestNewObjec
return E_NOTIMPL;
}
-struct IOleClientSiteVtbl csVtbl =
+static const IOleClientSiteVtbl csVtbl =
{
cs_QueryInterface,
cs_AddRef,
@@ -362,7 +362,7 @@ static HRESULT WINAPI is_DiscardUndoStat
return E_NOTIMPL;
}
-struct IOleInPlaceSiteVtbl isVtbl =
+static const IOleInPlaceSiteVtbl isVtbl =
{
is_QueryInterface,
is_AddRef,
@@ -383,7 +383,7 @@ static const WCHAR szIEWinFrame[] = { 'I
static LRESULT iewnd_OnCreate(HWND hwnd, LPCREATESTRUCTW lpcs)
{
- SetWindowLongPtrW(hwnd, 0, (LONG) lpcs->lpCreateParams);
+ SetWindowLongPtrW(hwnd, 0, (LONG_PTR) lpcs->lpCreateParams);
return 0;
}
More information about the wine-patches
mailing list