mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
SecurityPkg EsalVariableDxeSal: Use input Global to make code more clear
SecurityPkg\VariableAuthenticated\EsalVariableDxeSal\Variable.c AutoUpdateLangVariable() Global->PlatformLangCodes[VirtualMode] = AllocateRuntimeCopyPool (DataSize, Data); ASSERT (mVariableModuleGlobal->PlatformLangCodes[VirtualMode] != NULL); The patch is to use Global instead of mVariableModuleGlobal in the ASSERT (XXX) to make code more clear although mVariableModuleGlobal is equal to Global actually. Cc: Chao Zhang <chao.b.zhang@intel.com> Cc: Amy Chan <amy.chan@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Amy Chan <amy.chan@intel.com> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
This commit is contained in:
parent
da2369d21d
commit
5b03f1b514
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
The implementation of Extended SAL variable services.
|
The implementation of Extended SAL variable services.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -1661,7 +1661,7 @@ AutoUpdateLangVariable(
|
|||||||
FreePool (Global->PlatformLangCodes[VirtualMode]);
|
FreePool (Global->PlatformLangCodes[VirtualMode]);
|
||||||
}
|
}
|
||||||
Global->PlatformLangCodes[VirtualMode] = AllocateRuntimeCopyPool (DataSize, Data);
|
Global->PlatformLangCodes[VirtualMode] = AllocateRuntimeCopyPool (DataSize, Data);
|
||||||
ASSERT (mVariableModuleGlobal->PlatformLangCodes[VirtualMode] != NULL);
|
ASSERT (Global->PlatformLangCodes[VirtualMode] != NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// PlatformLang holds a single language from PlatformLangCodes,
|
// PlatformLang holds a single language from PlatformLangCodes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user