summaryrefslogtreecommitdiff
path: root/comIvy
diff options
context:
space:
mode:
Diffstat (limited to 'comIvy')
-rw-r--r--comIvy/Expression.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/comIvy/Expression.cpp b/comIvy/Expression.cpp
index 468a431..9a856a7 100644
--- a/comIvy/Expression.cpp
+++ b/comIvy/Expression.cpp
@@ -28,7 +28,7 @@ void CExpression::OnMessage(IvyApplication * app, int argc, const char ** argv)
BSTR appname = ConvCSTR( app->GetName() );
SAFEARRAY *pArrayVal = NULL;
HRESULT hr = S_OK;
-
+ // pour assurer la compatibilite avec VBSCript pouah horreur
//Create the safe array for the arguments string.
pArrayVal = SafeArrayCreateVector( VT_VARIANT, 0, argc );
@@ -43,12 +43,13 @@ void CExpression::OnMessage(IvyApplication * app, int argc, const char ** argv)
}
VARIANT args;
args.vt = VT_ARRAY | VT_VARIANT;
- args.parray = pArrayVal;
+ V_ARRAY(&args) = pArrayVal;
Received( appname, args );
SafeArrayDestroy(pArrayVal);
}
+
// CExpression
CExpression::CExpression()
{