Index: fpdfsdk/src/javascript/global.cpp |
diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp |
index f845ee0193f98a53b637f33efae99782ff663d11..f5bc82c1bb2a4c27c473bc3b9d5d078617addc56 100644 |
--- a/fpdfsdk/src/javascript/global.cpp |
+++ b/fpdfsdk/src/javascript/global.cpp |
@@ -351,7 +351,7 @@ void global_alternate::ObjectToArray(v8::Handle<v8::Object> pObj, CJS_GlobalVari |
CFX_WideString ws = JS_ToString(JS_GetArrayElemnet(pKeyList, i)); |
CFX_ByteString sKey = ws.UTF8Encode(); |
- v8::Handle<v8::Value> v = JS_GetObjectElement(isolate, pObj, (FX_LPCWSTR)ws); |
+ v8::Handle<v8::Value> v = JS_GetObjectElement(isolate, pObj, ws.c_str()); |
FXJSVALUETYPE vt = GET_VALUE_TYPE(v); |
switch (vt) |
{ |