mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-21 23:48:22 +08:00
Fix some warnings
This commit is contained in:
parent
616464ba29
commit
0a2f115056
@ -598,7 +598,7 @@ void UEFITool::extract(const UINT8 mode)
|
||||
|
||||
QByteArray extracted;
|
||||
QString name;
|
||||
UINT8 result = ffsOps->extract(index, name, extracted, mode);
|
||||
USTATUS result = ffsOps->extract(index, name, extracted, mode);
|
||||
if (result) {
|
||||
QMessageBox::critical(this, tr("Extraction failed"), errorCodeToUString(result), QMessageBox::Ok);
|
||||
return;
|
||||
@ -820,7 +820,7 @@ void UEFITool::openImageFile(QString path)
|
||||
setWindowTitle(tr("UEFITool %1 - %2").arg(version).arg(fileInfo.fileName()));
|
||||
|
||||
// Parse the image
|
||||
UINT8 result = ffsParser->parse(buffer);
|
||||
USTATUS result = ffsParser->parse(buffer);
|
||||
showParserMessages();
|
||||
if (result) {
|
||||
QMessageBox::critical(this, tr("Image parsing failed"), errorCodeToUString(result), QMessageBox::Ok);
|
||||
|
@ -572,8 +572,8 @@ USTATUS FfsParser::parseIntelImage(const UByteArray & intelImage, const UINT32 l
|
||||
UModelIndex regionIndex = model->addItem(model->offset(parent) + localOffset, Types::Region, Subtypes::DescriptorRegion, name, UString(), info, UByteArray(), body, UByteArray(), Fixed, index);
|
||||
|
||||
// Parse regions
|
||||
UINT8 result = U_SUCCESS;
|
||||
UINT8 parseResult = U_SUCCESS;
|
||||
USTATUS result = U_SUCCESS;
|
||||
USTATUS parseResult = U_SUCCESS;
|
||||
for (size_t i = 0; i < regions.size(); i++) {
|
||||
region = regions[i];
|
||||
switch (region.type) {
|
||||
@ -732,7 +732,7 @@ USTATUS FfsParser::parsePdrRegion(const UByteArray & pdr, const UINT32 localOffs
|
||||
index = model->addItem(model->offset(parent) + localOffset, Types::Region, Subtypes::PdrRegion, name, UString(), info, UByteArray(), pdr, UByteArray(), Fixed, parent);
|
||||
|
||||
// Parse PDR region as BIOS space
|
||||
UINT8 result = parseRawArea(index);
|
||||
USTATUS result = parseRawArea(index);
|
||||
if (result && result != U_VOLUMES_NOT_FOUND && result != U_INVALID_VOLUME)
|
||||
return result;
|
||||
|
||||
|
@ -75,7 +75,7 @@ UString uniqueItemName(const UModelIndex & index)
|
||||
}
|
||||
|
||||
// Returns text representation of error code
|
||||
UString errorCodeToUString(UINT8 errorCode)
|
||||
UString errorCodeToUString(USTATUS errorCode)
|
||||
{
|
||||
switch (errorCode) {
|
||||
case U_SUCCESS: return UString("Success");
|
||||
|
@ -23,7 +23,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
UString uniqueItemName(const UModelIndex & index);
|
||||
|
||||
// Converts error code to UString
|
||||
UString errorCodeToUString(UINT8 errorCode);
|
||||
UString errorCodeToUString(USTATUS errorCode);
|
||||
|
||||
// Decompression routine
|
||||
USTATUS decompress(const UByteArray & compressed, const UINT8 compressionType, UINT8 & algorithm, UByteArray & decompressed, UByteArray & efiDecompressed);
|
||||
|
Loading…
Reference in New Issue
Block a user