Prevent stack overflow by popping the pcall return value / error

This commit is contained in:
m000z0rz 2020-05-20 12:10:42 -05:00
parent e44af28b8e
commit 82716b247b
1 changed files with 2 additions and 0 deletions

View File

@ -465,6 +465,8 @@ void CScriptInstance::InvokeListenerCallback(IOLISTENER* lpListener)
const char* msg = duk_safe_to_string(m_Ctx, -1);
MessageBox(NULL, stdstr(msg).ToUTF16().c_str(), L"Script error", MB_OK | MB_ICONWARNING);
}
duk_pop(m_Ctx);
}
const char* CScriptInstance::Eval(const char* jsCode)