Index: core/fxcrt/extension.h |
diff --git a/core/fxcrt/extension.h b/core/fxcrt/extension.h |
index a9f3c23d29472251021dfe720d44a08d53ac2a4e..a8a099c664bb567f1d75bf623b4d4f028a1b1c30 100644 |
--- a/core/fxcrt/extension.h |
+++ b/core/fxcrt/extension.h |
@@ -52,7 +52,7 @@ class CFX_CRTFileAccess : public IFX_FileAccess { |
void GetPath(CFX_WideString& wsPath) override { wsPath = m_path; } |
IFX_FileStream* CreateFileStream(uint32_t dwModes) override { |
- return FX_CreateFileStream(m_path, dwModes); |
+ return FX_CreateFileStream(m_path.c_str(), dwModes); |
} |
FX_BOOL Init(const CFX_WideStringC& wsPath) { |