Browse Source

engine: platform: win32: do not call filesystem functions if filesystem_stdio was failed to load

master
Alibek Omarov 10 months ago
parent
commit
a9bddaac64
  1. 4
      engine/platform/win32/lib_win.c

4
engine/platform/win32/lib_win.c

@ -356,9 +356,9 @@ static void ListMissingModules( dll_user_t *hInst ) @@ -356,9 +356,9 @@ static void ListMissingModules( dll_user_t *hInst )
byte *data;
char buf[MAX_VA_STRING];
if ( !hInst ) return;
if( !hInst || !g_fsapi.LoadFile ) return;
data = FS_LoadFile( hInst->dllName, NULL, false );
data = g_fsapi.LoadFile( hInst->dllName, NULL, false );
if( !data ) return;
importDesc = GetImportDescriptor( hInst->dllName, data, &peHeader );

Loading…
Cancel
Save