From ed3e7457529cd29ed8c4c6bb5b56d37349d5a371 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 19 Jan 2021 21:58:04 +0100 Subject: [PATCH] Update DefaultIOSystem.cpp --- code/Common/DefaultIOSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Common/DefaultIOSystem.cpp b/code/Common/DefaultIOSystem.cpp index 82029f0c9..52af14b37 100644 --- a/code/Common/DefaultIOSystem.cpp +++ b/code/Common/DefaultIOSystem.cpp @@ -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; }