mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Fix a compiler warning
This commit is contained in:
parent
ec38091599
commit
b35193b3df
@ -74,7 +74,7 @@ LzmaCompress(
|
||||
|
||||
if (*DestinationSize < destLen)
|
||||
{
|
||||
*DestinationSize = destLen;
|
||||
*DestinationSize = (UINTN)destLen;
|
||||
return EFI_BUFFER_TOO_SMALL;
|
||||
}
|
||||
|
||||
|
@ -1401,7 +1401,7 @@ USTATUS NvramParser::parseVssStoreBody(const UModelIndex & index, UINT8 alignmen
|
||||
UINT8 subtype = 0;
|
||||
UString name;
|
||||
UString text;
|
||||
EFI_GUID* variableGuid;
|
||||
EFI_GUID* variableGuid = NULL;
|
||||
CHAR16* variableName = (CHAR16*)L"";
|
||||
UByteArray header;
|
||||
UByteArray body;
|
||||
@ -1527,7 +1527,7 @@ USTATUS NvramParser::parseVssStoreBody(const UModelIndex & index, UINT8 alignmen
|
||||
UString info;
|
||||
|
||||
// Rename invalid variables
|
||||
if (isInvalid) {
|
||||
if (isInvalid || !variableGuid) {
|
||||
name = UString("Invalid");
|
||||
}
|
||||
else { // Add GUID and text for valid variables
|
||||
|
Loading…
Reference in New Issue
Block a user