Update DefaultIOSystem.cpp

kimkulling-oss_fuzz29168
Kim Kulling 2021-01-19 21:58:04 +01:00 committed by GitHub
parent f05a57560b
commit ed3e745752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ IOStream *DefaultIOSystem::Open(const char *strFile, const char *strMode) {
ai_assert(strMode != nullptr);
FILE *file;
#ifdef _WIN32
std::string name = Utf8ToWide(strFile);
std::wstring name = Utf8ToWide(strFile);
if (name.empty()) {
return nullptr;
}