From 98bf05b948548db4e1e8dd782b7049ebb6bdc5c9 Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 29 Jan 2019 16:38:19 +0700 Subject: [PATCH] identification: fix network device detection --- engine/common/identification.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/identification.c b/engine/common/identification.c index 792a9786..0ee61750 100644 --- a/engine/common/identification.c +++ b/engine/common/identification.c @@ -206,8 +206,8 @@ qboolean ID_ValidateNetDevice( const char *dev ) int assignType; // These devices are fake, their mac address is generated each boot, while assign_type is 0 - if( Q_strnicmp( dev, "ccmni", sizeof( "ccmni" ) ) || - Q_strnicmp( dev, "ifb", sizeof( "ifb" ) ) ) + if( !Q_strnicmp( dev, "ccmni", sizeof( "ccmni" ) ) || + !Q_strnicmp( dev, "ifb", sizeof( "ifb" ) ) ) return false; pfile = FS_LoadDirectFile( va( "%s/%s/addr_assign_type", prefix, dev ), NULL );