add support to the eval command in the user debugger

This commit is contained in:
sina 2025-08-31 18:31:35 +02:00
parent 3f6d837a62
commit 31fc581135
No known key found for this signature in database
7 changed files with 46 additions and 56 deletions

View file

@ -135,7 +135,7 @@ ScriptEngineEvalSingleExpression(string Expr, PBOOLEAN HasError)
* @return BOOLEAN Returns TRUE if it was successful
*/
BOOLEAN
ScriptEngineExecuteSingleExpression(string Expr, BOOLEAN ShowErrorMessageIfAny, BOOLEAN IsFormat)
ScriptEngineExecuteSingleExpression(CHAR * Expr, BOOLEAN ShowErrorMessageIfAny, BOOLEAN IsFormat)
{
PVOID CodeBuffer;
UINT64 BufferAddress;
@ -146,7 +146,7 @@ ScriptEngineExecuteSingleExpression(string Expr, BOOLEAN ShowErrorMessageIfAny,
//
// Run script engine handler
//
CodeBuffer = ScriptEngineParseWrapper((char *)Expr.c_str(), ShowErrorMessageIfAny);
CodeBuffer = ScriptEngineParseWrapper(Expr, ShowErrorMessageIfAny);
if (CodeBuffer == NULL)
{