]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/Forms.c
1) Add a stringent check to make sure the package list for UpdateForm call must have...
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / FrameworkHiiToUefiHiiThunk / Forms.c
index 3679f6dfb452016cab51bc34c05c75193221da67..02beec331f391a56e5667f73c54605564e62fc08 100644 (file)
@@ -519,13 +519,10 @@ HiiUpdateForm (
     }\r
   }\r
 \r
-  if ((ThunkContext->IfrPackageCount == 0) && (ThunkContext->StringPackageCount != 0)) {\r
-    UefiHiiHandle = TagGuidToUefiHiiHandle (Private, &ThunkContext->TagGuid);\r
-  \r
-    if (UefiHiiHandle == NULL) {\r
-      Status = EFI_INVALID_PARAMETER;\r
-      goto Done;\r
-    }\r
+  if (ThunkContext->IfrPackageCount == 0) {\r
+    ASSERT (FALSE);\r
+    Status = EFI_INVALID_PARAMETER;\r
+    goto Done;\r
   } else {\r
     UefiHiiHandle = ThunkContext->UefiHiiHandle;\r
   }\r