Module: wine Branch: refs/heads/master Commit: 09a1a3fd7cd3aeb9f24f2fa1cc919accc8fb59cc URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=09a1a3fd7cd3aeb9f24f2fa1...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Mon Apr 10 15:30:46 2006 +0900
shdocvw: Constify IExplore OLE vtables.
---
dlls/shdocvw/iexplore.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/shdocvw/iexplore.c b/dlls/shdocvw/iexplore.c index a07fa88..f9186b7 100644 --- a/dlls/shdocvw/iexplore.c +++ b/dlls/shdocvw/iexplore.c @@ -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; }