From 60aec342eb5b453ca25816cbaf9469ab40f3eb60 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 4 Oct 2026 14:54:58 +1000 Subject: [PATCH] FileSystem: Make OpenSharedCFile() wrap OpenCFile() on non-Windows --- src/common/file_system.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/file_system.cpp b/src/common/file_system.cpp index a3aa15672..d8ee46139 100644 --- a/src/common/file_system.cpp +++ b/src/common/file_system.cpp @@ -1132,10 +1132,7 @@ std::FILE* FileSystem::OpenSharedCFile(const char* path, const char* mode, FileS Error::SetErrno(error, errno); return nullptr; #else - std::FILE* fp = std::fopen(path, mode); - if (!fp) - Error::SetErrno(error, errno); - return fp; + return OpenCFile(path, mode, error); #endif }