Module: wine Branch: master Commit: bacf5c640fe0c6bc05323a6d3f25d32c4bfe2589 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bacf5c640fe0c6bc05323a6d3f...
Author: Rob Shearman rob@codeweavers.com Date: Wed May 30 08:59:44 2007 +0100
oleaut32: For automatic-value-getting in ITypeInfo::Invoke, it doesn't matter what flag(s) the function was executed with, just what type of function is being invoked.
---
dlls/oleaut32/typelib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index b4dd526..c0615de 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5806,7 +5806,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( }
if (SUCCEEDED(hres) && pVarResult && (func_desc->cParams == 1) && - (wFlags == INVOKE_PROPERTYGET) && + (func_desc->invkind & INVOKE_PROPERTYGET) && (func_desc->lprgelemdescParam[0].u.paramdesc.wParamFlags & PARAMFLAG_FRETVAL) && (pDispParams->cArgs != 0)) {