| Index: fpdfsdk/src/javascript/JS_Context.cpp
|
| diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp
|
| index 9b98e6ef159fb6a0af8aef48b8c6f40dbd411745..50f9f3cbb0f42acc45179b9d88ededc9c3b7bece 100644
|
| --- a/fpdfsdk/src/javascript/JS_Context.cpp
|
| +++ b/fpdfsdk/src/javascript/JS_Context.cpp
|
| @@ -72,11 +72,11 @@ FX_BOOL CJS_Context::DoJob(int nMode, const CFX_WideString& script, CFX_WideStri
|
| {
|
| if (nMode == 0)
|
| {
|
| - nRet = JS_Execute(*m_pRuntime, this, script, script.GetLength(), &error);
|
| + nRet = JS_Execute(*m_pRuntime, this, script.c_str(), script.GetLength(), &error);
|
| }
|
| else
|
| {
|
| - nRet = JS_Parse(*m_pRuntime, this, script, script.GetLength(), &error);
|
| + nRet = JS_Parse(*m_pRuntime, this, script.c_str(), script.GetLength(), &error);
|
| }
|
| }
|
|
|
|
|