瀏覽代碼

Remove buggy method.

Kim Kulling 4 年之前
父節點
當前提交
f05a57560b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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).c_str();
+    std::string name = Utf8ToWide(strFile);
     if (name.empty()) {
         return nullptr;
     }