mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Version 0.2.3
Minor possible errors correction
This commit is contained in:
parent
5a57489a5e
commit
a86829a27e
@ -416,6 +416,9 @@ Returns:
|
|||||||
UINT32 i;
|
UINT32 i;
|
||||||
|
|
||||||
mText = malloc (WNDSIZ * 2 + MAXMATCH);
|
mText = malloc (WNDSIZ * 2 + MAXMATCH);
|
||||||
|
if (!mText)
|
||||||
|
return ERR_OUT_OF_MEMORY;
|
||||||
|
|
||||||
for (i = 0 ; i < WNDSIZ * 2 + MAXMATCH; i ++) {
|
for (i = 0 ; i < WNDSIZ * 2 + MAXMATCH; i ++) {
|
||||||
mText[i] = 0;
|
mText[i] = 0;
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,7 @@ UINT8* UEFITool::parseRegion(const QByteArray & flashImage, UINT8 regionSubtype,
|
|||||||
UINT32 regionSize = calculateRegionSize(regionBase, regionLimit);
|
UINT32 regionSize = calculateRegionSize(regionBase, regionLimit);
|
||||||
|
|
||||||
// Populate descriptor map
|
// Populate descriptor map
|
||||||
FLASH_DESCRIPTOR_MAP* descriptor_map = (FLASH_DESCRIPTOR_MAP*) flashImage.constData() + sizeof(FLASH_DESCRIPTOR_HEADER);
|
FLASH_DESCRIPTOR_MAP* descriptor_map = (FLASH_DESCRIPTOR_MAP*) (flashImage.constData() + sizeof(FLASH_DESCRIPTOR_HEADER));
|
||||||
|
|
||||||
// Determine presence of 2 flash chips
|
// Determine presence of 2 flash chips
|
||||||
bool twoChips = descriptor_map->NumberOfFlashChips;
|
bool twoChips = descriptor_map->NumberOfFlashChips;
|
||||||
@ -809,7 +809,9 @@ UINT8 UEFITool::parseFile(const QByteArray & file, UINT8 revision, bool erasePol
|
|||||||
if (LzmaGetInfo(data, dataSize, &decompressedSize) != ERR_SUCCESS)
|
if (LzmaGetInfo(data, dataSize, &decompressedSize) != ERR_SUCCESS)
|
||||||
debug(tr("LzmaGetInfo failed"));
|
debug(tr("LzmaGetInfo failed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
decompressed = new UINT8[decompressedSize];
|
decompressed = new UINT8[decompressedSize];
|
||||||
|
|
||||||
// Decompress section data
|
// Decompress section data
|
||||||
if (LzmaDecompress(data, dataSize, decompressed) != ERR_SUCCESS)
|
if (LzmaDecompress(data, dataSize, decompressed) != ERR_SUCCESS)
|
||||||
debug(tr("LzmaDecompress failed"));
|
debug(tr("LzmaDecompress failed"));
|
||||||
|
@ -23,6 +23,7 @@ HEADERS += uefitool.h \
|
|||||||
descriptor.h \
|
descriptor.h \
|
||||||
ffs.h \
|
ffs.h \
|
||||||
treeitem.h \
|
treeitem.h \
|
||||||
|
treeitemtypes.h \
|
||||||
treemodel.h \
|
treemodel.h \
|
||||||
LZMA/LzmaCompress.h \
|
LZMA/LzmaCompress.h \
|
||||||
LZMA/LzmaDecompress.h \
|
LZMA/LzmaDecompress.h \
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>UEFITool 0.2.2</string>
|
<string>UEFITool 0.2.3</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralWidget">
|
<widget class="QWidget" name="centralWidget">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
Loading…
Reference in New Issue
Block a user