Index: fpdfsdk/javascript/PublicMethods.cpp |
diff --git a/fpdfsdk/javascript/PublicMethods.cpp b/fpdfsdk/javascript/PublicMethods.cpp |
index d03f67159900a75b6a1ffe69546090b441cf2744..9f7b60f70d62665003f3d8108c49b8d973483b53 100644 |
--- a/fpdfsdk/javascript/PublicMethods.cpp |
+++ b/fpdfsdk/javascript/PublicMethods.cpp |
@@ -1654,7 +1654,7 @@ FX_BOOL CJS_PublicMethods::AFMakeNumber(IJS_Context* cc, |
} |
CFX_WideString ws = params[0].ToCFXWideString(); |
ws.Replace(L",", L"."); |
- vRet = ws; |
+ vRet = ws.c_str(); |
vRet.MaybeCoerceToNumber(); |
if (vRet.GetType() != CJS_Value::VT_number) |
vRet = 0; |