send action buffer as pointer in script engine

This commit is contained in:
SinaKarvandi 2022-03-12 15:09:17 +03:30
parent b982a19e74
commit 1eb6334288
5 changed files with 146 additions and 138 deletions

View file

@ -331,9 +331,14 @@ ScriptEngineEvalWrapper(PGUEST_REGS GuestRegs,
VariablesList.LocalVariablesList = g_ScriptLocalVariables;
//
// If has error, show error message and abort.
// If has error, show error message and abort
//
if (ScriptEngineExecute(GuestRegs, ActionBuffer, &VariablesList, CodeBuffer, &i, &ErrorSymbol) == TRUE)
if (ScriptEngineExecute(GuestRegs,
&ActionBuffer,
&VariablesList,
CodeBuffer,
&i,
&ErrorSymbol) == TRUE)
{
CHAR NameOfOperator[MAX_FUNCTION_NAME_LENGTH] = {0};