Commit a8e7d5eb authored by hybrid's avatar hybrid

Fix WinCE string format problem.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2855 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f95bf6fb
......@@ -712,7 +712,7 @@ bool CFileSystem::existFile(const io::path& filename) const
#if defined(_IRR_WCHAR_FILESYSTEM)
HANDLE hFile = CreateFileW(filename.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
#else
HANDLE hFile = CreateFileA(filename.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
HANDLE hFile = CreateFileW(core::stringw(filename).c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
#endif
if (hFile == INVALID_HANDLE_VALUE)
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment