Commit 50976092 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

urlmon: Constify some variables.

parent 76255835
...@@ -43,7 +43,7 @@ typedef struct { ...@@ -43,7 +43,7 @@ typedef struct {
LONG ref; LONG ref;
} EnumFORMATETC; } EnumFORMATETC;
static IEnumFORMATETC *EnumFORMATETC_Create(UINT cfmtetc, FORMATETC *rgfmtetc, UINT it); static IEnumFORMATETC *EnumFORMATETC_Create(UINT cfmtetc, const FORMATETC *rgfmtetc, UINT it);
#define ENUMF_THIS(iface) ICOM_THIS_MULTI(EnumFORMATETC, lpEnumFORMATETCVtbl, iface) #define ENUMF_THIS(iface) ICOM_THIS_MULTI(EnumFORMATETC, lpEnumFORMATETCVtbl, iface)
...@@ -158,7 +158,7 @@ static const IEnumFORMATETCVtbl EnumFORMATETCVtbl = { ...@@ -158,7 +158,7 @@ static const IEnumFORMATETCVtbl EnumFORMATETCVtbl = {
EnumFORMATETC_Clone EnumFORMATETC_Clone
}; };
static IEnumFORMATETC *EnumFORMATETC_Create(UINT cfmtetc, FORMATETC *rgfmtetc, UINT it) static IEnumFORMATETC *EnumFORMATETC_Create(UINT cfmtetc, const FORMATETC *rgfmtetc, UINT it)
{ {
EnumFORMATETC *ret = HeapAlloc(GetProcessHeap(), 0, sizeof(EnumFORMATETC)); EnumFORMATETC *ret = HeapAlloc(GetProcessHeap(), 0, sizeof(EnumFORMATETC));
......
...@@ -228,7 +228,7 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback( ...@@ -228,7 +228,7 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
IInternetProtocolSink_ReportProgress(This->protocol_sink, ulStatusCode, (LPWSTR)lpvStatusInformation); IInternetProtocolSink_ReportProgress(This->protocol_sink, ulStatusCode, (LPWSTR)lpvStatusInformation);
} }
static inline LPWSTR strndupW(LPWSTR string, int len) static inline LPWSTR strndupW(LPCWSTR string, int len)
{ {
LPWSTR ret = NULL; LPWSTR ret = NULL;
if (string && if (string &&
......
...@@ -183,7 +183,7 @@ static void Binding_CloseCacheDownload(Binding *This) ...@@ -183,7 +183,7 @@ static void Binding_CloseCacheDownload(Binding *This)
This->pstrCache = 0; This->pstrCache = 0;
} }
static HRESULT Binding_MoreCacheData(Binding *This, char *buf, DWORD dwBytes) static HRESULT Binding_MoreCacheData(Binding *This, const char *buf, DWORD dwBytes)
{ {
DWORD written; DWORD written;
......
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