Andrew Talbot : shdocvw: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 30 06:20:42 CDT 2007
Module: wine
Branch: master
Commit: 72c3d16d83c44382023b32289b14709c98d04498
URL: http://source.winehq.org/git/wine.git/?a=commit;h=72c3d16d83c44382023b32289b14709c98d04498
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Wed Aug 29 22:20:28 2007 +0100
shdocvw: Constify some variables.
---
dlls/shdocvw/navigate.c | 8 ++++----
dlls/shdocvw/shdocvw.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/shdocvw/navigate.c b/dlls/shdocvw/navigate.c
index 4c1ccdb..fb71682 100644
--- a/dlls/shdocvw/navigate.c
+++ b/dlls/shdocvw/navigate.c
@@ -317,8 +317,8 @@ static IBindStatusCallback *create_callback(DocHost *This, PBYTE post_data,
return BINDSC(ret);
}
-static void on_before_navigate2(DocHost *This, LPWSTR url, PBYTE post_data, ULONG post_data_len,
- LPWSTR headers, VARIANT_BOOL *cancel)
+static void on_before_navigate2(DocHost *This, LPCWSTR url, const BYTE *post_data,
+ ULONG post_data_len, LPWSTR headers, VARIANT_BOOL *cancel)
{
VARIANT var_url, var_flags, var_frame_name, var_post_data, var_post_data2, var_headers;
DISPPARAMS dispparams;
@@ -514,8 +514,8 @@ static HRESULT bind_url_to_object(DocHost *This, LPCWSTR url, PBYTE post_data, U
return hres;
}
-HRESULT navigate_url(DocHost *This, BSTR url, VARIANT *Flags, VARIANT *TargetFrameName,
- VARIANT *PostData, VARIANT *Headers)
+HRESULT navigate_url(DocHost *This, BSTR url, const VARIANT *Flags,
+ const VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
{
PBYTE post_data = NULL;
ULONG post_data_len = 0;
diff --git a/dlls/shdocvw/shdocvw.h b/dlls/shdocvw/shdocvw.h
index 5704156..d421025 100644
--- a/dlls/shdocvw/shdocvw.h
+++ b/dlls/shdocvw/shdocvw.h
@@ -194,7 +194,7 @@ HRESULT WebBrowserV2_Create(IUnknown*,REFIID,void**);
void create_doc_view_hwnd(DocHost*);
void deactivate_document(DocHost*);
void call_sink(ConnectionPoint*,DISPID,DISPPARAMS*);
-HRESULT navigate_url(DocHost*,BSTR,VARIANT*,VARIANT*,VARIANT*,VARIANT*);
+HRESULT navigate_url(DocHost*,BSTR,const VARIANT*,const VARIANT*,VARIANT*,VARIANT*);
HRESULT InternetExplorer_Create(IUnknown*,REFIID,void**);
void InternetExplorer_WebBrowser_Init(InternetExplorer*);
More information about the wine-cvs
mailing list