PutNvramPlistToRtVars buf after plist refactoring

This commit is contained in:
jief666 2020-08-18 22:30:14 +03:00
parent 8dcf25dc6d
commit 5b1eea4df0

View File

@ -1046,10 +1046,11 @@ PutNvramPlistToRtVars ()
DbgHeader("PutNvramPlistToRtVars");
// DBG("PutNvramPlistToRtVars ...\n");
// iterate over dict elements
for (Tag = gNvramDict->dictTagValue(); Tag != NULL; Tag = Tag->nextTagValue()) {
for (Tag = gNvramDict->dictTagValue(); Tag != NULL; Tag = Tag->nextTagValue())
{
EFI_GUID *VendorGuid = &gEfiAppleBootGuid;
Value = NULL;
ValTag = Tag->dictTagValue();
if ( Tag->isKey() ) ValTag = Tag->keyTagValue();
// process only valid <key> tags
if (!Tag->isKey() || ValTag == NULL) {