Index: core/src/fxcrt/fx_extension.cpp |
diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp |
index fa6245c9d32a1ba6b3f588080fb69a15ea817b5d..cae1763c7ee573796287f0b4b1986c8f8572dffb 100644 |
--- a/core/src/fxcrt/fx_extension.cpp |
+++ b/core/src/fxcrt/fx_extension.cpp |
@@ -133,7 +133,8 @@ FX_FLOAT FXSYS_strtof(const FX_CHAR* pcsStr, |
if (iLength < 0) { |
iLength = (int32_t)FXSYS_strlen(pcsStr); |
} |
- CFX_WideString ws = CFX_WideString::FromLocal(pcsStr, iLength); |
+ CFX_WideString ws = |
+ CFX_WideString::FromLocal(CFX_ByteString(pcsStr, iLength)); |
return FXSYS_wcstof(ws.c_str(), iLength, pUsedLen); |
} |
FX_FLOAT FXSYS_wcstof(const FX_WCHAR* pwsStr, |