1
0
forked from 0ad/0ad

smbios: avoid warning when no information is returned (happens on 32-bit XP)

This was SVN commit r9218.
This commit is contained in:
janwas 2011-04-09 17:09:48 +00:00
parent ee3190e0e9
commit a3812af176

View File

@ -51,7 +51,7 @@ static LibError GetTable(wfirmware::Table& table)
// (MSDN says this will be 0, but we'll retrieve it for 100% correctness.)
wfirmware::TableIds tableIds = wfirmware::GetTableIDs(provider);
if(tableIds.empty())
WARN_RETURN(ERR::_1);
return ERR::_1; // NOWARN (happens on 32-bit XP)
table = wfirmware::GetTable(provider, tableIds[0]);
if(table.empty())