diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 18:34:16 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:54 +0200 |
commit | 80901a247f48f446b6f10af9c10eee399f825cad (patch) | |
tree | f4c78b62a311d395785be33cc796969e038e9812 /IntelFrameworkModulePkg | |
parent | 0cdc10bdca1c0e1a002815f1193cc4a6452dc5e7 (diff) | |
download | edk2-platforms-80901a247f48f446b6f10af9c10eee399f825cad.tar.xz |
IntelFrameworkModulePkg/LegacyBootManagerLib: rebase to ARRAY_SIZE()
Cc: Jeff Fan <jeff.fan@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBm.c b/IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBm.c index d3b48e8d0b..c56a878639 100644 --- a/IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBm.c +++ b/IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBm.c @@ -183,7 +183,7 @@ LegacyBmBuildLegacyDevNameString ( //
CopyMem (StringBufferA, StringDesc, LEGACY_BM_BOOT_DESCRIPTION_LENGTH);
StringBufferA[LEGACY_BM_BOOT_DESCRIPTION_LENGTH] = 0;
- AsciiStrToUnicodeStrS (StringBufferA, StringBufferU, sizeof (StringBufferU) / sizeof (StringBufferU[0]));
+ AsciiStrToUnicodeStrS (StringBufferA, StringBufferU, ARRAY_SIZE (StringBufferU));
Fmt = L"%s";
Type = StringBufferU;
}
|