diff options
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Context.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/JS_Context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp index 9b98e6ef15..50f9f3cbb0 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); } } |