Index: fpdfsdk/javascript/global.cpp |
diff --git a/fpdfsdk/javascript/global.cpp b/fpdfsdk/javascript/global.cpp |
index 380713b425d79245fe0320051f926fd81ff385c0..043bd290ac7d90eb7288adff417b618662b6da34 100644 |
--- a/fpdfsdk/javascript/global.cpp |
+++ b/fpdfsdk/javascript/global.cpp |
@@ -53,7 +53,7 @@ const unsigned int JSCONST_nUndefHash = |
CHash<'u', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd'>::value; |
static unsigned JS_CalcHash(const wchar_t* main) { |
- return (unsigned)FX_HashCode_String_GetW(main, FXSYS_wcslen(main)); |
+ return (unsigned)FX_HashCode_GetW(CFX_WideStringC(main), false); |
} |
#ifndef NDEBUG |