Rob Shearman : 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.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 30 08:56:53 CDT 2007


Module: wine
Branch: master
Commit: bacf5c640fe0c6bc05323a6d3f25d32c4bfe2589
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bacf5c640fe0c6bc05323a6d3f25d32c4bfe2589

Author: Rob Shearman <rob at 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))
             {




More information about the wine-cvs mailing list