Fix wrong usage sizeof(SIZE).
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sergey Isakov <isakov-sl@bk.ru> Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Sergey Isakov <isakov-sl@bk.ru> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Ruiyu Ni<ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15672 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9f6c5db258
commit
3facc089e5
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Read EDID information and parse EDID information.
|
Read EDID information and parse EDID information.
|
||||||
|
|
||||||
Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2008 - 2014, 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
|
||||||
|
@ -141,7 +141,7 @@ ReadEdidData (
|
||||||
}
|
}
|
||||||
|
|
||||||
*EdidDataBlock = AllocateCopyPool (
|
*EdidDataBlock = AllocateCopyPool (
|
||||||
sizeof (EDID_BLOCK_SIZE),
|
EDID_BLOCK_SIZE,
|
||||||
ValidEdid
|
ValidEdid
|
||||||
);
|
);
|
||||||
if (*EdidDataBlock == NULL) {
|
if (*EdidDataBlock == NULL) {
|
||||||
|
@ -370,7 +370,7 @@ CirrusLogic5430VideoModeSetup (
|
||||||
//
|
//
|
||||||
// Allocate double size of VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE to avoid overflow
|
// Allocate double size of VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE to avoid overflow
|
||||||
//
|
//
|
||||||
EdidOverrideDataBlock = AllocatePool (sizeof (EDID_BLOCK_SIZE * 2));
|
EdidOverrideDataBlock = AllocatePool (EDID_BLOCK_SIZE * 2);
|
||||||
if (NULL == EdidOverrideDataBlock) {
|
if (NULL == EdidOverrideDataBlock) {
|
||||||
Status = EFI_OUT_OF_RESOURCES;
|
Status = EFI_OUT_OF_RESOURCES;
|
||||||
goto Done;
|
goto Done;
|
||||||
|
|
Loading…
Reference in New Issue