summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-04 06:26:26 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-04 06:26:26 +0000
commitc4487989c8e4c1167449e1918780a75f84903a41 (patch)
tree43c3dc69ffe8f7e0667fd2e7fea7b6b242ba5de8
parent7aaf2fd67c4a0caff05a6b3d9955a82376d8bce8 (diff)
downloadedk2-platforms-c4487989c8e4c1167449e1918780a75f84903a41.tar.xz
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
-rw-r--r--IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolWrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolWrite.c b/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolWrite.c
index 7ca8f44b15..ac3cf0abd8 100644
--- a/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolWrite.c
+++ b/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolWrite.c
@@ -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;
}