oleaut32: Constify some variables

Andrew Talbot Andrew.Talbot at talbotville.com
Thu Aug 2 17:13:10 CDT 2007


Changelog:
    oleaut32: Constify some variables.

diff -urN a/dlls/oleaut32/ungif.c b/dlls/oleaut32/ungif.c
--- a/dlls/oleaut32/ungif.c	2007-05-18 14:05:29.000000000 +0100
+++ b/dlls/oleaut32/ungif.c	2007-07-31 21:24:28.000000000 +0100
@@ -107,7 +107,7 @@
 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 @@
 static int
 AddExtensionBlock(SavedImage * New,
                   int Len,
-                  unsigned char ExtData[]) {
+                  const unsigned char ExtData[]) {
 
     ExtensionBlock *ep;
 
@@ -723,7 +723,7 @@
  * 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 -urN a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c
--- a/dlls/oleaut32/usrmarshal.c	2007-08-02 19:40:19.000000000 +0100
+++ b/dlls/oleaut32/usrmarshal.c	2007-08-02 22:37:36.000000000 +0100
@@ -268,7 +268,7 @@
     }
 }
 
-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 @@
 }
 
 /* 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-patches mailing list