Index: core/src/fxcrt/fx_extension.cpp |
diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp |
index 330c675457329c7e2bb0d0a6f7e9cf529f0d9098..e74c52d4a84cff338a39bac1e2461798717b2897 100644 |
--- a/core/src/fxcrt/fx_extension.cpp |
+++ b/core/src/fxcrt/fx_extension.cpp |
@@ -158,7 +158,7 @@ FX_FLOAT FXSYS_strtof(FX_LPCSTR pcsStr, FX_INT32 iLength, FX_INT32 *pUsedLen) |
iLength = (FX_INT32)FXSYS_strlen(pcsStr); |
} |
CFX_WideString ws = CFX_WideString::FromLocal(pcsStr, iLength); |
- return FXSYS_wcstof((FX_LPCWSTR)ws, iLength, pUsedLen); |
+ return FXSYS_wcstof(ws.c_str(), iLength, pUsedLen); |
} |
FX_FLOAT FXSYS_wcstof(FX_LPCWSTR pwsStr, FX_INT32 iLength, FX_INT32 *pUsedLen) |
{ |