2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

filesystem: VFileSystem009: just in case, always rewrite fs_api_t requested through CreateInterface export

This commit is contained in:
Alibek Omarov 2023-09-14 00:20:28 +03:00
parent bee35a1873
commit 2823a6d269

View File

@ -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( &copy, &g_api, sizeof( copy ));
memcpy( &copy, &g_api, sizeof( copy ));
if( retval )
*retval = 0;