mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Fix Clang warning
This commit is contained in:
parent
c0a5cd0c0f
commit
4b34fe546d
@ -3470,7 +3470,7 @@ STATUS FfsParser::findNextStore(const QModelIndex & index, const QByteArray & da
|
|||||||
// Check reserved bytes
|
// Check reserved bytes
|
||||||
const INTEL_MICROCODE_HEADER* ucodeHeader = (const INTEL_MICROCODE_HEADER*)currentPos;
|
const INTEL_MICROCODE_HEADER* ucodeHeader = (const INTEL_MICROCODE_HEADER*)currentPos;
|
||||||
bool reservedBytesValid = true;
|
bool reservedBytesValid = true;
|
||||||
for (int i = 0; i < sizeof(ucodeHeader->Reserved); i++)
|
for (UINT32 i = 0; i < sizeof(ucodeHeader->Reserved); i++)
|
||||||
if (ucodeHeader->Reserved[i] != INTEL_MICROCODE_HEADER_RESERVED_BYTE) {
|
if (ucodeHeader->Reserved[i] != INTEL_MICROCODE_HEADER_RESERVED_BYTE) {
|
||||||
reservedBytesValid = false;
|
reservedBytesValid = false;
|
||||||
break;
|
break;
|
||||||
@ -3503,7 +3503,7 @@ STATUS FfsParser::findNextStore(const QModelIndex & index, const QByteArray & da
|
|||||||
const OEM_ACTIVATION_MARKER* markerHeader = (const OEM_ACTIVATION_MARKER*)(data.constData() + offset - 26);
|
const OEM_ACTIVATION_MARKER* markerHeader = (const OEM_ACTIVATION_MARKER*)(data.constData() + offset - 26);
|
||||||
// Check reserved bytes
|
// Check reserved bytes
|
||||||
bool reservedBytesValid = true;
|
bool reservedBytesValid = true;
|
||||||
for (int i = 0; i < sizeof(markerHeader->Reserved); i++)
|
for (UINT32 i = 0; i < sizeof(markerHeader->Reserved); i++)
|
||||||
if (markerHeader->Reserved[i] != OEM_ACTIVATION_MARKER_RESERVED_BYTE) {
|
if (markerHeader->Reserved[i] != OEM_ACTIVATION_MARKER_RESERVED_BYTE) {
|
||||||
reservedBytesValid = false;
|
reservedBytesValid = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user