More windows fixes

This commit is contained in:
Lion Kortlepel 2021-09-20 17:00:30 +02:00
parent d84051bdd3
commit d7a4322313
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -30,7 +30,7 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const
for (const auto& Entry : Entries) {
// read in entire file
#if defined(WIN32)
std::FILE* File = _wfopen(reinterpret_cast<const char*>(Entry.c_str()), "r");
std::FILE* File = _wfopen(reinterpret_cast<const wchar_t*>(Entry.c_str()), "r");
#else
std::FILE* File = std::fopen(reinterpret_cast<const char*>(Entry.c_str()), "r");
#endif