[ROM Browser] fixed impossible arithmetic condition

This commit is contained in:
unknown 2015-11-17 21:27:41 -05:00
parent 839fda1e0e
commit 96bd77edcc
1 changed files with 2 additions and 2 deletions

View File

@ -426,8 +426,8 @@ void CRomBrowser::FillRomExtensionInfo(ROM_INFO * pRomInfo)
//Get the selected color
sprintf(String, "%s.Sel", pRomInfo->Status);
m_RomIniFile->GetString("Rom Status", String, "FFFFFFFF", String, 9);
int selcol = std::strtoul(String, 0, 16);
if (selcol < 0)
uint32_t selcol = std::strtoul(String, NULL, 16);
if (selcol & 0x80000000)
{
pRomInfo->SelColor = -1;
}