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:
lzeng14
2011-11-04 06:26:26 +00:00
parent 7aaf2fd67c
commit c4487989c8

View File

@ -693,7 +693,7 @@ FvcWrite (
return Status; return Status;
} }
if ((FvbAttributes & EFI_FV2_WRITE_STATUS) != 0) { if ((FvbAttributes & EFI_FV2_WRITE_STATUS) == 0) {
return EFI_ACCESS_DENIED; return EFI_ACCESS_DENIED;
} }
@ -1386,7 +1386,7 @@ FvWriteFile (
// //
// Can we have write right? // Can we have write right?
// //
if ((FvAttributes & EFI_FV2_WRITE_STATUS) != 0) { if ((FvAttributes & EFI_FV2_WRITE_STATUS) == 0) {
return EFI_WRITE_PROTECTED; return EFI_WRITE_PROTECTED;
} }