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) if (*DestinationSize < destLen)
{ {
*DestinationSize = destLen; *DestinationSize = (UINTN)destLen;
return EFI_BUFFER_TOO_SMALL; return EFI_BUFFER_TOO_SMALL;
} }

View File

@ -1401,7 +1401,7 @@ USTATUS NvramParser::parseVssStoreBody(const UModelIndex & index, UINT8 alignmen
UINT8 subtype = 0; UINT8 subtype = 0;
UString name; UString name;
UString text; UString text;
EFI_GUID* variableGuid; EFI_GUID* variableGuid = NULL;
CHAR16* variableName = (CHAR16*)L""; CHAR16* variableName = (CHAR16*)L"";
UByteArray header; UByteArray header;
UByteArray body; UByteArray body;
@ -1527,7 +1527,7 @@ USTATUS NvramParser::parseVssStoreBody(const UModelIndex & index, UINT8 alignmen
UString info; UString info;
// Rename invalid variables // Rename invalid variables
if (isInvalid) { if (isInvalid || !variableGuid) {
name = UString("Invalid"); name = UString("Invalid");
} }
else { // Add GUID and text for valid variables else { // Add GUID and text for valid variables