engine: win32: lib: oops, fix wrong sizeof
This commit is contained in:
parent
2b385ff1f4
commit
5040cb83d0
1 changed files with 1 additions and 1 deletions
|
@ -998,7 +998,7 @@ qboolean COM_CheckLibraryDirectDependency( const char *name, const char *depname
|
||||||
|
|
||||||
importDesc = (PIMAGE_IMPORT_DESCRIPTOR)CALCULATE_ADDRESS( data, directory->VirtualAddress );
|
importDesc = (PIMAGE_IMPORT_DESCRIPTOR)CALCULATE_ADDRESS( data, directory->VirtualAddress );
|
||||||
|
|
||||||
for( ; !IsBadReadPtr( importDesc, sizeof( PIMAGE_IMPORT_DESCRIPTOR)) && importDesc->Name; importDesc++ )
|
for( ; !IsBadReadPtr( importDesc, sizeof( IMAGE_IMPORT_DESCRIPTOR)) && importDesc->Name; importDesc++ )
|
||||||
{
|
{
|
||||||
const char *importName = ( const char* )CALCULATE_ADDRESS( data, importDesc->Name );
|
const char *importName = ( const char* )CALCULATE_ADDRESS( data, importDesc->Name );
|
||||||
Con_Reportf( "library %s has direct dependency %s\n", name, importName );
|
Con_Reportf( "library %s has direct dependency %s\n", name, importName );
|
||||||
|
|
Loading…
Add table
Reference in a new issue