From 3facc089e552b84a526db48801e8a3fa00fabdec Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Wed, 23 Jul 2014 02:13:14 +0000 Subject: [PATCH] Fix wrong usage sizeof(SIZE). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sergey Isakov Signed-off-by: Jeff Fan Reviewed-by: Sergey Isakov Reviewed-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15672 6f19259b-4bc3-4df7-8a09-765794883524 --- OptionRomPkg/CirrusLogic5430Dxe/Edid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OptionRomPkg/CirrusLogic5430Dxe/Edid.c b/OptionRomPkg/CirrusLogic5430Dxe/Edid.c index 20b93a8e89..6ce681a6ca 100644 --- a/OptionRomPkg/CirrusLogic5430Dxe/Edid.c +++ b/OptionRomPkg/CirrusLogic5430Dxe/Edid.c @@ -1,7 +1,7 @@ /** @file Read EDID information and parse EDID information. - Copyright (c) 2008, Intel Corporation. All rights reserved.
+ Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials 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 @@ -141,7 +141,7 @@ ReadEdidData ( } *EdidDataBlock = AllocateCopyPool ( - sizeof (EDID_BLOCK_SIZE), + EDID_BLOCK_SIZE, ValidEdid ); if (*EdidDataBlock == NULL) { @@ -370,7 +370,7 @@ CirrusLogic5430VideoModeSetup ( // // 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) { Status = EFI_OUT_OF_RESOURCES; goto Done; -- 2.39.2