Andrew Talbot : oleaut32: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 3 08:04:41 CDT 2007
Module: wine
Branch: master
Commit: 61fde63fcea12fe406d94958a283ea14d33ed985
URL: http://source.winehq.org/git/wine.git/?a=commit;h=61fde63fcea12fe406d94958a283ea14d33ed985
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Thu Aug 2 23:13:10 2007 +0100
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 415e7bf..9040632 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 a6ef030..9976334 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;
More information about the wine-cvs
mailing list