Index: core/src/fxcrt/fxcrt_platforms.cpp |
diff --git a/core/src/fxcrt/fxcrt_platforms.cpp b/core/src/fxcrt/fxcrt_platforms.cpp |
index 1c47ee6c9b71f247335668c1c10d0f01a72735be..cdf3d421f5099570cb7d6637a681a49bdb1ee939 100644 |
--- a/core/src/fxcrt/fxcrt_platforms.cpp |
+++ b/core/src/fxcrt/fxcrt_platforms.cpp |
@@ -46,7 +46,7 @@ FX_BOOL CFXCRT_FileAccess_CRT::Open(FX_BSTR fileName, FX_DWORD dwMode) |
} |
CFX_ByteString strMode; |
FXCRT_GetFileModeString(dwMode, strMode); |
- m_hFile = FXSYS_fopen(fileName.GetCStr(), (FX_LPCSTR)strMode); |
+ m_hFile = FXSYS_fopen(fileName.GetCStr(), strMode.c_str()); |
return m_hFile != NULL; |
} |
FX_BOOL CFXCRT_FileAccess_CRT::Open(FX_WSTR fileName, FX_DWORD dwMode) |