Fix K8 and Sct failure.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8337 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2009-05-19 09:30:21 +00:00
parent 08654acba5
commit 6e3f5b2aa9
3 changed files with 109 additions and 58 deletions

View File

@@ -659,7 +659,7 @@ ExportFormPackages (
for (Link = PackageList->FormPkgHdr.ForwardLink; Link != &PackageList->FormPkgHdr; Link = Link->ForwardLink) {
FormPackage = CR (Link, HII_IFR_PACKAGE_INSTANCE, IfrEntry, HII_IFR_PACKAGE_SIGNATURE);
PackageLength += FormPackage->FormPkgHdr.Length;
if (PackageLength + *ResultSize + UsedSize <= BufferSize) {
if ((Buffer != NULL) && (PackageLength + *ResultSize + UsedSize <= BufferSize)) {
//
// Invoke registered notification if exists
//