- _file = CreateFile(_name.data(), GENERIC_READ, FILE_SHARE_READ,
+#ifdef UNICODE
+ std::wstring aName = Kernel_Utils::utf8_decode_s(_name);
+ const wchar_t* name = aName.c_str();
+#else
+ char* name = _name.data();
+#endif
+ _file = CreateFile(name, GENERIC_READ, FILE_SHARE_READ,