Qt: Add missing use of isZeroed
This commit is contained in:
parent
a9262868fc
commit
93d248859f
@ -80,7 +80,7 @@ ROMInfo::ROMInfo(std::shared_ptr<CoreController> controller, QWidget* parent)
|
|||||||
#ifdef USE_SQLITE3
|
#ifdef USE_SQLITE3
|
||||||
if (db) {
|
if (db) {
|
||||||
NoIntroGame game{};
|
NoIntroGame game{};
|
||||||
if (memcmp(sha1, &(const uint8_t[20]) {}, 20) != 0 && NoIntroDBLookupGameBySHA1(db, sha1, &game)) {
|
if (!isZeroed<20>(sha1) && NoIntroDBLookupGameBySHA1(db, sha1, &game)) {
|
||||||
m_ui.name->setText(game.name);
|
m_ui.name->setText(game.name);
|
||||||
} else if (crc32 && NoIntroDBLookupGameByCRC(db, crc32, &game)) {
|
} else if (crc32 && NoIntroDBLookupGameByCRC(db, crc32, &game)) {
|
||||||
m_ui.name->setText(game.name);
|
m_ui.name->setText(game.name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user