mirror of https://github.com/acidanthera/audk.git
Correct the logic to check EFI_FV2_WRITE_STATUS.
Signed-off-by: lzeng14 Reviewed-by: ZhangCaoIntel git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12661 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7aaf2fd67c
commit
c4487989c8
|
@ -693,7 +693,7 @@ FvcWrite (
|
|||
return Status;
|
||||
}
|
||||
|
||||
if ((FvbAttributes & EFI_FV2_WRITE_STATUS) != 0) {
|
||||
if ((FvbAttributes & EFI_FV2_WRITE_STATUS) == 0) {
|
||||
return EFI_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
|
@ -1386,7 +1386,7 @@ FvWriteFile (
|
|||
//
|
||||
// Can we have write right?
|
||||
//
|
||||
if ((FvAttributes & EFI_FV2_WRITE_STATUS) != 0) {
|
||||
if ((FvAttributes & EFI_FV2_WRITE_STATUS) == 0) {
|
||||
return EFI_WRITE_PROTECTED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue