Przeglądaj źródła

Update DefaultIOSystem.cpp

Kim Kulling 4 lat temu
rodzic
commit
ed3e745752
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      code/Common/DefaultIOSystem.cpp

+ 1 - 1
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;
     }