Version 0.2.3

Minor possible errors correction
This commit is contained in:
Nikolaj Schlej 2013-10-09 08:55:54 +02:00
parent 5a57489a5e
commit a86829a27e
4 changed files with 9 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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"));

View File

@ -22,7 +22,8 @@ HEADERS += uefitool.h \
basetypes.h \ basetypes.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 \

View File

@ -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">