ole: ITypeInfo::Invoke stack overwrite fix.

Have enough stack space up to even VT_VARIANTs, fixes a stack
corruption.
This commit is contained in:
Marcus Meissner 2006-01-11 20:55:07 +01:00 committed by Alexandre Julliard
parent bce90cfb85
commit cf173911a3
1 changed files with 2 additions and 2 deletions

View File

@ -5205,7 +5205,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
VARIANT varresult;
SHORT missing_param_offset = func_desc->cParams;
SHORT missing_params = 0;
void *retval; /* pointer for storing byref retvals in */
VARIANT retval; /* pointer for storing byref retvals in */
hres = S_OK;
for (i = 0; i < func_desc->cParams; i++)
@ -5238,7 +5238,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
arg = prgpvarg[i] = &rgvarg[i];
memset(arg, 0, sizeof(*arg));
V_VT(arg) = rgvt[i];
retval = NULL;
memset(&retval, 0, sizeof(retval));
V_BYREF(arg) = &retval;
}
else