Revision: 15672 http://sourceforge.net/p/edk2/code/15672 Author: vanjeff Date: 2014-07-23 02:13:14 +0000 (Wed, 23 Jul 2014) Log Message: ----------- Fix wrong usage sizeof(SIZE).
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sergey Isakov <isakov...@bk.ru> Signed-off-by: Jeff Fan <jeff....@intel.com> Reviewed-by: Sergey Isakov <isakov...@bk.ru> Reviewed-by: Jeff Fan <jeff....@intel.com> Reviewed-by: Ruiyu Ni<ruiyu...@intel.com> Modified Paths: -------------- trunk/edk2/OptionRomPkg/CirrusLogic5430Dxe/Edid.c Modified: trunk/edk2/OptionRomPkg/CirrusLogic5430Dxe/Edid.c =================================================================== --- trunk/edk2/OptionRomPkg/CirrusLogic5430Dxe/Edid.c 2014-07-23 02:12:37 UTC (rev 15671) +++ trunk/edk2/OptionRomPkg/CirrusLogic5430Dxe/Edid.c 2014-07-23 02:13:14 UTC (rev 15672) @@ -1,7 +1,7 @@ /** @file 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 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 @@ } *EdidDataBlock = AllocateCopyPool ( - sizeof (EDID_BLOCK_SIZE), + EDID_BLOCK_SIZE, ValidEdid ); if (*EdidDataBlock == NULL) { @@ -370,7 +370,7 @@ // // 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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits