X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Nt32Pkg%2FMiscSubClassPlatformDxe%2FMiscOemStringFunction.c;h=077660257ac1073bcd14ee9c40ccc8e2f0f17d68;hb=60eb6c6d2e01e8d44d29740b006df1fc7e74ab21;hp=75aecb39f604998e19f6e3b4c95a1372626275bf;hpb=1fdd39d371ecd0c660dce8926add29846c95cd37;p=mirror_edk2.git diff --git a/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c b/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c index 75aecb39f6..077660257a 100644 --- a/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c +++ b/Nt32Pkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c @@ -1,24 +1,17 @@ -/*++ - -Copyright (c) 2009, Intel Corporation. All rights reserved.
-This software and associated documentation (if any) is furnished -under a license and may only be used or copied in accordance -with the terms of the license. Except as permitted by such -license, no part of this software or documentation may be -reproduced, stored in a retrieval system, or transmitted in any -form or by any means without the express written consent of -Intel Corporation. - -Module Name: - - MiscOemStringFunction.c - -Abstract: - +/** @file boot information boot time changes. SMBIOS type 11. + +Copyright (c) 2009 - 2011, 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 +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. ---*/ +**/ #include "MiscSubclassDriver.h" @@ -76,13 +69,8 @@ MISC_SMBIOS_TABLE_FUNCTION(OemString) // // Now we have got the full smbios record, call smbios protocol to add this record. // - SmbiosHandle = 0; - Status = Smbios-> Add( - Smbios, - NULL, - &SmbiosHandle, - (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord - ); + Status = AddSmbiosRecord (Smbios, &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord); + FreePool(SmbiosRecord); return Status; }