urlmon: Constify some variables.
This commit is contained in:
parent
7625583501
commit
509760922a
|
@ -43,7 +43,7 @@ typedef struct {
|
|||
LONG ref;
|
||||
} 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)
|
||||
|
||||
|
@ -158,7 +158,7 @@ static const IEnumFORMATETCVtbl EnumFORMATETCVtbl = {
|
|||
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));
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ static void CALLBACK HTTPPROTOCOL_InternetStatusCallback(
|
|||
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;
|
||||
if (string &&
|
||||
|
|
|
@ -183,7 +183,7 @@ static void Binding_CloseCacheDownload(Binding *This)
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue