Index: fpdfsdk/src/javascript/JS_Context.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Context.cpp b/fpdfsdk/src/javascript/JS_Context.cpp |
index bdcb1ac542039b4e153be86e1c9dcabff0d95def..277abc08e592f87d8aa680030c5662ee0932e6af 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); |
} |
} |