From 61fde63fcea12fe406d94958a283ea14d33ed985 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Thu, 2 Aug 2007 23:13:10 +0100 Subject: [PATCH] oleaut32: Constify some variables. --- dlls/oleaut32/ungif.c | 6 +++--- dlls/oleaut32/usrmarshal.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dlls/oleaut32/ungif.c b/dlls/oleaut32/ungif.c index 415e7bfe342..9040632051c 100644 --- a/dlls/oleaut32/ungif.c +++ b/dlls/oleaut32/ungif.c @@ -107,7 +107,7 @@ typedef struct GifFilePrivateType { static int DGifGetWord(GifFileType *GifFile, GifWord *Word); static int DGifSetupDecompress(GifFileType *GifFile); static int DGifDecompressLine(GifFileType *GifFile, GifPixelType *Line, int LineLen); -static int DGifGetPrefixChar(GifPrefixType *Prefix, int Code, int ClearCode); +static int DGifGetPrefixChar(const GifPrefixType *Prefix, int Code, int ClearCode); static int DGifDecompressInput(GifFileType *GifFile, int *Code); static int DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf, GifByteType *NextByte); @@ -192,7 +192,7 @@ FreeMapObject(ColorMapObject * Object) { static int AddExtensionBlock(SavedImage * New, int Len, - unsigned char ExtData[]) { + const unsigned char ExtData[]) { ExtensionBlock *ep; @@ -723,7 +723,7 @@ DGifDecompressLine(GifFileType * GifFile, * the maximum possible if image O.k. - LZ_MAX_CODE times. *****************************************************************************/ static int -DGifGetPrefixChar(GifPrefixType *Prefix, +DGifGetPrefixChar(const GifPrefixType *Prefix, int Code, int ClearCode) { diff --git a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c index a6ef0300438..997633469f7 100644 --- a/dlls/oleaut32/usrmarshal.c +++ b/dlls/oleaut32/usrmarshal.c @@ -268,7 +268,7 @@ static unsigned int get_type_size(ULONG *pFlags, const VARIANT *pvar) } } -static unsigned int get_type_alignment(ULONG *pFlags, VARIANT *pvar) +static unsigned int get_type_alignment(ULONG *pFlags, const VARIANT *pvar) { unsigned int size = get_type_size(pFlags, pvar); if(V_VT(pvar) & VT_BYREF) return 3; @@ -333,7 +333,8 @@ static ULONG wire_extra_user_size(ULONG *pFlags, ULONG Start, VARIANT *pvar) } /* helper: called for VT_DISPATCH variants to marshal the IDispatch* into the buffer. returns Buffer on failure, new position otherwise */ -static unsigned char* interface_variant_marshal(ULONG *pFlags, unsigned char *Buffer, REFIID riid, IUnknown *punk) +static unsigned char* interface_variant_marshal(const ULONG *pFlags, unsigned char *Buffer, + REFIID riid, IUnknown *punk) { IStream *working; HGLOBAL working_mem;