summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-22 09:33:34 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-08-22 09:33:34 +0000
commitd3a58e2ddfb301e90cdeb9d8996bc24d9b9ae2ea (patch)
tree538d03a3945b9366044315329442307bae1b84e6
parentd60db640558b78d9598c6d9c00935963c67d7188 (diff)
downloadedk2-d3a58e2ddfb301e90cdeb9d8996bc24d9b9ae2ea.tar.gz
edk2-d3a58e2ddfb301e90cdeb9d8996bc24d9b9ae2ea.tar.bz2
edk2-d3a58e2ddfb301e90cdeb9d8996bc24d9b9ae2ea.zip
Update the code to match spec for EfiFvbSetVolumeAttributes API.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3690 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c6
-rw-r--r--MdeModulePkg/Library/EdkFvbServiceLib/X64/Fvb.c6
-rw-r--r--MdePkg/Include/Library/FvbServiceLib.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/MdeModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c b/MdeModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c
index 3ec0d6f9eb..1e07c54ece 100644
--- a/MdeModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c
+++ b/MdeModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c
@@ -480,8 +480,8 @@ EfiFvbGetVolumeAttributes (
**/
EFI_STATUS
EfiFvbSetVolumeAttributes (
- IN UINTN Instance,
- IN EFI_FVB_ATTRIBUTES Attributes
+ IN UINTN Instance,
+ IN OUT EFI_FVB_ATTRIBUTES *Attributes
)
{
if (Instance >= mFvbCount) {
@@ -492,7 +492,7 @@ EfiFvbSetVolumeAttributes (
return EFI_INVALID_PARAMETER;
}
- return mFvbEntry[Instance].Fvb->SetAttributes (mFvbEntry[Instance].Fvb, &Attributes);
+ return mFvbEntry[Instance].Fvb->SetAttributes (mFvbEntry[Instance].Fvb, Attributes);
}
/**
diff --git a/MdeModulePkg/Library/EdkFvbServiceLib/X64/Fvb.c b/MdeModulePkg/Library/EdkFvbServiceLib/X64/Fvb.c
index 4679624e70..d67c94ccd2 100644
--- a/MdeModulePkg/Library/EdkFvbServiceLib/X64/Fvb.c
+++ b/MdeModulePkg/Library/EdkFvbServiceLib/X64/Fvb.c
@@ -479,8 +479,8 @@ EfiFvbGetVolumeAttributes (
**/
EFI_STATUS
EfiFvbSetVolumeAttributes (
- IN UINTN Instance,
- IN EFI_FVB_ATTRIBUTES Attributes
+ IN UINTN Instance,
+ IN OUT EFI_FVB_ATTRIBUTES *Attributes
)
{
if (Instance >= mFvbCount) {
@@ -491,7 +491,7 @@ EfiFvbSetVolumeAttributes (
return EFI_INVALID_PARAMETER;
}
- return mFvbEntry[Instance].Fvb->SetAttributes (mFvbEntry[Instance].Fvb, &Attributes);
+ return mFvbEntry[Instance].Fvb->SetAttributes (mFvbEntry[Instance].Fvb, Attributes);
}
/**
diff --git a/MdePkg/Include/Library/FvbServiceLib.h b/MdePkg/Include/Library/FvbServiceLib.h
index 27b0f08822..19854753f4 100644
--- a/MdePkg/Include/Library/FvbServiceLib.h
+++ b/MdePkg/Include/Library/FvbServiceLib.h
@@ -119,8 +119,8 @@ EfiFvbGetVolumeAttributes (
**/
EFI_STATUS
EfiFvbSetVolumeAttributes (
- IN UINTN Instance,
- IN EFI_FVB_ATTRIBUTES Attributes
+ IN UINTN Instance,
+ IN OUT EFI_FVB_ATTRIBUTES *Attributes
);