From 5040cb83d02cc2e31fb995a3d9349642ee6bc6b3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 27 Sep 2019 17:02:04 +0300 Subject: [PATCH] engine: win32: lib: oops, fix wrong sizeof --- engine/platform/win32/lib_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/platform/win32/lib_win.c b/engine/platform/win32/lib_win.c index 79417acd..e86fe2b4 100644 --- a/engine/platform/win32/lib_win.c +++ b/engine/platform/win32/lib_win.c @@ -998,7 +998,7 @@ qboolean COM_CheckLibraryDirectDependency( const char *name, const char *depname 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 ); Con_Reportf( "library %s has direct dependency %s\n", name, importName );