mirror of https://github.com/acidanthera/audk.git
Fix the issue that BootOrder can't be set
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8343 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ce4106bec4
commit
dedfc3bbc9
|
@ -20,4 +20,4 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
extern GUID gTianoCustomDecompressGuid;
|
extern GUID gTianoCustomDecompressGuid;
|
||||||
|
|
||||||
#endif // #ifndef _EFI_CAPSULE_VENDOR_GUID_H_
|
#endif
|
||||||
|
|
|
@ -64,6 +64,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
extern EFI_GUID mBootMaintGuid;
|
extern EFI_GUID mBootMaintGuid;
|
||||||
extern EFI_GUID mFileExplorerGuid;
|
extern EFI_GUID mFileExplorerGuid;
|
||||||
extern CHAR16 mFileExplorerStorageName[];
|
extern CHAR16 mFileExplorerStorageName[];
|
||||||
|
extern CHAR16 mBootMaintStorageName[];
|
||||||
//
|
//
|
||||||
// These are the VFR compiler generated data representing our VFR data.
|
// These are the VFR compiler generated data representing our VFR data.
|
||||||
//
|
//
|
||||||
|
|
|
@ -94,6 +94,9 @@ FakeExtractConfig (
|
||||||
OUT EFI_STRING *Results
|
OUT EFI_STRING *Results
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (Request == NULL || Progress == NULL || Results == NULL) {
|
||||||
|
return EFI_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
*Progress = Request;
|
*Progress = Request;
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
@ -122,15 +125,18 @@ FakeRouteConfig (
|
||||||
OUT EFI_STRING *Progress
|
OUT EFI_STRING *Progress
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Configuration == NULL) {
|
if (Configuration == NULL || Progress == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Progress == NULL) {
|
*Progress = Configuration;
|
||||||
return EFI_INVALID_PARAMETER;
|
if (!HiiIsConfigHdrMatch (Configuration, &mBootMaintGuid, mBootMaintStorageName)
|
||||||
|
&& !HiiIsConfigHdrMatch (Configuration, &mFileExplorerGuid, mFileExplorerStorageName)) {
|
||||||
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_NOT_FOUND;
|
*Progress = Configuration + StrLen (Configuration);
|
||||||
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue