From 2823a6d269964fee91a924cd6987cebf708c8593 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 14 Sep 2023 00:20:28 +0300 Subject: [PATCH] filesystem: VFileSystem009: just in case, always rewrite fs_api_t requested through CreateInterface export --- filesystem/VFileSystem009.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/filesystem/VFileSystem009.cpp b/filesystem/VFileSystem009.cpp index a5517d0a..7bd53f69 100644 --- a/filesystem/VFileSystem009.cpp +++ b/filesystem/VFileSystem009.cpp @@ -517,8 +517,7 @@ extern "C" void EXPORT *CreateInterface( const char *interface, int *retval ) { static fs_api_t copy = { 0 }; // return a copy, to disallow overriding - if( !copy.InitStdio ) - memcpy( ©, &g_api, sizeof( copy )); + memcpy( ©, &g_api, sizeof( copy )); if( retval ) *retval = 0;