oleaut32: Constify some variables.
This commit is contained in:
parent
0cc08cccb9
commit
61fde63fce
|
@ -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) {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue