| Index: core/fxcrt/fx_basic_util.cpp
|
| diff --git a/core/fxcrt/fx_basic_util.cpp b/core/fxcrt/fx_basic_util.cpp
|
| index 4374dec779275b600178e1dbc70248212a3a1856..1cf966589d86a3fa5a13b07cf816fa64e939e6d9 100644
|
| --- a/core/fxcrt/fx_basic_util.cpp
|
| +++ b/core/fxcrt/fx_basic_util.cpp
|
| @@ -210,9 +210,9 @@ void* FX_OpenFolder(const FX_CHAR* path) {
|
| #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
|
| #ifndef _WIN32_WCE
|
| CFindFileDataA* pData = new CFindFileDataA;
|
| - pData->m_Handle =
|
| - FindFirstFileExA(CFX_ByteString(path) + "/*.*", FindExInfoStandard,
|
| - &pData->m_FindData, FindExSearchNameMatch, NULL, 0);
|
| + pData->m_Handle = FindFirstFileExA((CFX_ByteString(path) + "/*.*").c_str(),
|
| + FindExInfoStandard, &pData->m_FindData,
|
| + FindExSearchNameMatch, NULL, 0);
|
| #else
|
| CFindFileDataW* pData = new CFindFileDataW;
|
| pData->m_Handle = FindFirstFileW(CFX_WideString::FromLocal(path) + L"/*.*",
|
| @@ -242,7 +242,7 @@ void* FX_OpenFolder(const FX_WCHAR* path) {
|
| pData->m_bEnd = FALSE;
|
| return pData;
|
| #else
|
| - DIR* dir = opendir(CFX_ByteString::FromUnicode(path));
|
| + DIR* dir = opendir(CFX_ByteString::FromUnicode(path).c_str());
|
| return dir;
|
| #endif
|
| }
|
|
|