diff options
Diffstat (limited to 'fpdfsdk/javascript/Icon.cpp')
-rw-r--r-- | fpdfsdk/javascript/Icon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/Icon.cpp b/fpdfsdk/javascript/Icon.cpp index a5fa3faa20..53f549d2f2 100644 --- a/fpdfsdk/javascript/Icon.cpp +++ b/fpdfsdk/javascript/Icon.cpp @@ -26,7 +26,7 @@ Icon::Icon(CJS_Object* pJSObject) Icon::~Icon() {} bool Icon::get_name(CJS_Runtime* pRuntime, CJS_Value* vp, WideString* sError) { - vp->Set(pRuntime, m_swIconName); + vp->Set(pRuntime->NewString(m_swIconName.c_str())); return true; } |