[ROM Browser] fixed impossible arithmetic condition
This commit is contained in:
parent
839fda1e0e
commit
96bd77edcc
|
@ -426,8 +426,8 @@ void CRomBrowser::FillRomExtensionInfo(ROM_INFO * pRomInfo)
|
||||||
//Get the selected color
|
//Get the selected color
|
||||||
sprintf(String, "%s.Sel", pRomInfo->Status);
|
sprintf(String, "%s.Sel", pRomInfo->Status);
|
||||||
m_RomIniFile->GetString("Rom Status", String, "FFFFFFFF", String, 9);
|
m_RomIniFile->GetString("Rom Status", String, "FFFFFFFF", String, 9);
|
||||||
int selcol = std::strtoul(String, 0, 16);
|
uint32_t selcol = std::strtoul(String, NULL, 16);
|
||||||
if (selcol < 0)
|
if (selcol & 0x80000000)
|
||||||
{
|
{
|
||||||
pRomInfo->SelColor = -1;
|
pRomInfo->SelColor = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue