summaryrefslogtreecommitdiff
path: root/core/fxcrt/fxcrt_posix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fxcrt_posix.cpp')
-rw-r--r--core/fxcrt/fxcrt_posix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fxcrt_posix.cpp b/core/fxcrt/fxcrt_posix.cpp
index a18bb69c55..9237acef6b 100644
--- a/core/fxcrt/fxcrt_posix.cpp
+++ b/core/fxcrt/fxcrt_posix.cpp
@@ -45,7 +45,7 @@ FX_BOOL CFXCRT_FileAccess_Posix::Open(const CFX_ByteStringC& fileName,
}
FX_BOOL CFXCRT_FileAccess_Posix::Open(const CFX_WideStringC& fileName,
uint32_t dwMode) {
- return Open(FX_UTF8Encode(fileName).AsByteStringC(), dwMode);
+ return Open(FX_UTF8Encode(fileName).AsStringC(), dwMode);
}
void CFXCRT_FileAccess_Posix::Close() {
if (m_nFD < 0) {