Fix a compiler warning

This commit is contained in:
vit9696 2018-05-07 20:50:56 +03:00
parent ec38091599
commit b35193b3df
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ LzmaCompress(
if (*DestinationSize < destLen)
{
*DestinationSize = destLen;
*DestinationSize = (UINTN)destLen;
return EFI_BUFFER_TOO_SMALL;
}

View file

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