Index: xfa/fxfa/parser/xfa_script_imp.cpp |
diff --git a/xfa/fxfa/parser/xfa_script_imp.cpp b/xfa/fxfa/parser/xfa_script_imp.cpp |
index ee95865dc61294454799e3284cb8e4e655aae5d4..0c8aa1a838f9f474bae43d269c9ccaf02bd62941 100644 |
--- a/xfa/fxfa/parser/xfa_script_imp.cpp |
+++ b/xfa/fxfa/parser/xfa_script_imp.cpp |
@@ -179,8 +179,7 @@ void CXFA_ScriptContext::GlobalPropertyGetter(FXJSE_HOBJECT hObject, |
XFA_FM2JS_GlobalPropertyGetter(lpScriptContext->m_hFM2JSContext, hValue); |
return; |
} |
- uint32_t uHashCode = |
- FX_HashCode_String_GetW(wsPropName.c_str(), wsPropName.GetLength()); |
+ uint32_t uHashCode = FX_HashCode_GetW(wsPropName.AsStringC(), false); |
if (uHashCode != XFA_HASHCODE_Layout) { |
CXFA_Object* pObject = |
lpScriptContext->GetDocument()->GetXFAObject(uHashCode); |