MdeModulePkg Variable: VarErrFlag need to be consistent in NV flash and cache

The code wrongly has TempFlag wrote to NV flash, but has Flag assigned to NV cache.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19573 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Star Zeng 2015-12-29 09:04:55 +00:00 committed by lzeng14
parent b2c59ce83c
commit 4a23636a34
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ RecordVarErrorFlag (
//
// Update the data in NV cache.
//
*VarErrFlag = Flag;
*VarErrFlag = TempFlag;
}
}
}