yet another typelib patch

Ove Kaaven ovek at arcticnet.no
Thu Oct 4 12:56:54 CDT 2001


Probably my last InstallShield-related patch for now, as my priorities
have been temporarily reassigned. Feel free to continue beating this beast
into submission on your own...

Log:
Ove Kaaven <ovek at transgaming.com>
The DISPPARAMS parameter array is a reverse-order array.

Index: dlls/oleaut32/typelib.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/typelib.c,v
retrieving revision 1.51
diff -u -r1.51 typelib.c
--- dlls/oleaut32/typelib.c	2001/10/04 16:14:08	1.51
+++ dlls/oleaut32/typelib.c	2001/10/04 16:31:40
@@ -3932,10 +3936,10 @@
 	    for (i=0;i<pFDesc->funcdesc.cParams;i++) {
 		if (i<pDispParams->cArgs) {
 		    TRACE("set %d to disparg type %d vs %d\n",i,
-			    V_VT(pDispParams->rgvarg+i),
+			    V_VT(&pDispParams->rgvarg[pDispParams->cArgs-i-1]),
 			    pFDesc->funcdesc.lprgelemdescParam[i].tdesc.vt
 		    );
-		    args[i+1] = V_UNION(pDispParams->rgvarg+i,lVal);
+		    args[i+1] = V_UNION(&pDispParams->rgvarg[pDispParams->cArgs-i-1],lVal);
 		} else {
 		    TYPEDESC *tdesc = &(pFDesc->funcdesc.lprgelemdescParam[i].tdesc);
 		    TRACE("set %d to pointer for get (type is %d)\n",i,tdesc->vt);





More information about the wine-patches mailing list