mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-26 03:39:16 +01:00
engine: platform: win32: do not call filesystem functions if filesystem_stdio was failed to load
This commit is contained in:
parent
6cef6f6a75
commit
a9bddaac64
@ -356,13 +356,13 @@ static void ListMissingModules( dll_user_t *hInst )
|
||||
byte *data;
|
||||
char buf[MAX_VA_STRING];
|
||||
|
||||
if ( !hInst ) return;
|
||||
|
||||
data = FS_LoadFile( hInst->dllName, NULL, false );
|
||||
if ( !data ) return;
|
||||
if( !hInst || !g_fsapi.LoadFile ) return;
|
||||
|
||||
data = g_fsapi.LoadFile( hInst->dllName, NULL, false );
|
||||
if( !data ) return;
|
||||
|
||||
importDesc = GetImportDescriptor( hInst->dllName, data, &peHeader );
|
||||
if ( !importDesc )
|
||||
if( !importDesc )
|
||||
{
|
||||
Mem_Free( data );
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user