From 7fe9eb956fe41e00a1c87c690d0e5000f6b9d6fb Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Sun, 22 Feb 2015 00:42:11 +0000 Subject: [PATCH] Fixes error in SMBIOS::InitStructures by not warning on invalid header size, fixes #2985 This was SVN commit r16374. --- source/lib/sysdep/smbios.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/sysdep/smbios.cpp b/source/lib/sysdep/smbios.cpp index 5c410872d9..357360b77c 100644 --- a/source/lib/sysdep/smbios.cpp +++ b/source/lib/sysdep/smbios.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2011 Wildfire Games +/* Copyright (c) 2015 Wildfire Games * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -442,7 +442,7 @@ static Status InitStructures() if(header->id == 127) // end break; if(header->length < sizeof(Header)) - WARN_RETURN(ERR::_3); + return ERR::_3; // NOWARN (happens on some unknown BIOS, see http://trac.wildfiregames.com/ticket/2985) const Header* next; const Strings strings = ExtractStrings(header, (const char*)end, next);