mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-05 11:44:26 +00:00
engine: win32: lib: try to fix crash when checking dependencies
This commit is contained in:
parent
cd5028eed1
commit
2b385ff1f4
@ -998,7 +998,7 @@ qboolean COM_CheckLibraryDirectDependency( const char *name, const char *depname
|
||||
|
||||
importDesc = (PIMAGE_IMPORT_DESCRIPTOR)CALCULATE_ADDRESS( data, directory->VirtualAddress );
|
||||
|
||||
for( ; importDesc->Name; importDesc++ )
|
||||
for( ; !IsBadReadPtr( importDesc, sizeof( PIMAGE_IMPORT_DESCRIPTOR)) && importDesc->Name; importDesc++ )
|
||||
{
|
||||
const char *importName = ( const char* )CALCULATE_ADDRESS( data, importDesc->Name );
|
||||
Con_Reportf( "library %s has direct dependency %s\n", name, importName );
|
||||
|
Loading…
x
Reference in New Issue
Block a user