From f05a57560baa19f8ff49e9d9ddcf5fd1cc693d11 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 19 Jan 2021 21:27:50 +0100 Subject: [PATCH] Remove buggy method. --- 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 c3059ac31..82029f0c9 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).c_str(); + std::string name = Utf8ToWide(strFile); if (name.empty()) { return nullptr; }