Reviewed by: Yao, Jiewen <jiewen....@intel.com>

-----Original Message-----
From: Zeng, Star 
Sent: Thursday, July 02, 2015 9:43 AM
To: edk2-devel@lists.sourceforge.net
Cc: Yao, Jiewen
Subject: [PATCH] MdeModulePkg: Fix EBC build failure.

Cc: Jiewen Yao <jiewen....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.z...@intel.com>
---
 MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c 
b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
index e1dfeea..3c99367 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
+++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
@@ -78,7 +78,10 @@ VARIABLE_ENTRY_PROPERTY mVariableEntryProperty[] = {
 
 AUTH_VAR_LIB_CONTEXT_IN mContextIn = {
   AUTH_VAR_LIB_CONTEXT_IN_STRUCT_VERSION,
-  sizeof (AUTH_VAR_LIB_CONTEXT_IN),
+  //
+  // StructSize, TO BE FILLED
+  //
+  0,
   //
   // MaxAuthVariableSize, TO BE FILLED
   //
@@ -4029,6 +4032,7 @@ VariableWriteServiceInitialize (
     //
     // Authenticated variable initialize.
     //
+    mContextIn.StructSize = sizeof (AUTH_VAR_LIB_CONTEXT_IN);
     mContextIn.MaxAuthVariableSize = 
mVariableModuleGlobal->MaxAuthVariableSize - GetVariableHeaderSize ();
     Status = AuthVariableLibInitialize (&mContextIn, &mContextOut);
     if (!EFI_ERROR (Status)) {
-- 
1.9.5.msysgit.0


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to