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;
|
||||
|
||||
mText = malloc (WNDSIZ * 2 + MAXMATCH);
|
||||
if (!mText)
|
||||
return ERR_OUT_OF_MEMORY;
|
||||
|
||||
for (i = 0 ; i < WNDSIZ * 2 + MAXMATCH; i ++) {
|
||||
mText[i] = 0;
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ UINT8* UEFITool::parseRegion(const QByteArray & flashImage, UINT8 regionSubtype,
|
||||
UINT32 regionSize = calculateRegionSize(regionBase, regionLimit);
|
||||
|
||||
// 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
|
||||
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)
|
||||
debug(tr("LzmaGetInfo failed"));
|
||||
}
|
||||
|
||||
decompressed = new UINT8[decompressedSize];
|
||||
|
||||
// Decompress section data
|
||||
if (LzmaDecompress(data, dataSize, decompressed) != ERR_SUCCESS)
|
||||
debug(tr("LzmaDecompress failed"));
|
||||
|
@ -22,7 +22,8 @@ HEADERS += uefitool.h \
|
||||
basetypes.h \
|
||||
descriptor.h \
|
||||
ffs.h \
|
||||
treeitem.h \
|
||||
treeitem.h \
|
||||
treeitemtypes.h \
|
||||
treemodel.h \
|
||||
LZMA/LzmaCompress.h \
|
||||
LZMA/LzmaDecompress.h \
|
||||
|
@ -20,7 +20,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>UEFITool 0.2.2</string>
|
||||
<string>UEFITool 0.2.3</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<property name="sizePolicy">
|
||||
|
Loading…
Reference in New Issue
Block a user