oleaut32: Constify some variables

Andrew Talbot Andrew.Talbot at talbotville.com
Wed Jul 25 15:37:23 CDT 2007


Changelog:
    oleaut32: Constify some variables.

diff -urN a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c
--- a/dlls/oleaut32/tmarshal.c	2007-05-18 19:57:30.000000000 +0100
+++ b/dlls/oleaut32/tmarshal.c	2007-07-25 21:00:01.000000000 +0100
@@ -96,7 +96,7 @@
 }
 
 static HRESULT
-xbuf_add(marshal_state *buf, LPBYTE stuff, DWORD size)
+xbuf_add(marshal_state *buf, const BYTE *stuff, DWORD size)
 {
     HRESULT hr;
 
@@ -523,7 +523,7 @@
 }
 
 static int
-_xsize(TYPEDESC *td) {
+_xsize(const TYPEDESC *td) {
     switch (td->vt) {
     case VT_DATE:
 	return sizeof(DATE);
@@ -531,7 +531,7 @@
 	return sizeof(VARIANT)+3;
     case VT_CARRAY: {
 	int i, arrsize = 1;
-	ARRAYDESC *adesc = td->u.lpadesc;
+	const ARRAYDESC *adesc = td->u.lpadesc;
 
 	for (i=0;i<adesc->cDims;i++)
 	    arrsize *= adesc->rgbounds[i].cElements;



More information about the wine-patches mailing list