X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkNt32Pkg%2FDxe%2FPlatformBds%2FBdsPlatform.c;h=1d6f9139c6818e02d2f40c74f0f10f66f1122f30;hp=d1edef3d7ed9cadfda0d91af70c12977e071c099;hb=9471ecb798ad67b8e53e6b2bcaf56ef5d83162e6;hpb=878ddf1fc3540a715f63594ed22b6929e881afb4;ds=sidebyside diff --git a/EdkNt32Pkg/Dxe/PlatformBds/BdsPlatform.c b/EdkNt32Pkg/Dxe/PlatformBds/BdsPlatform.c index d1edef3d7e..1d6f9139c6 100644 --- a/EdkNt32Pkg/Dxe/PlatformBds/BdsPlatform.c +++ b/EdkNt32Pkg/Dxe/PlatformBds/BdsPlatform.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2007, 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 @@ -315,7 +315,7 @@ Returns: // // Get current Boot Mode // - Status = BdsLibGetBootMode (&PrivateData->BootMode); + PrivateData->BootMode = GetBootModeHob(); // // Go the different platform policy with different boot mode @@ -445,7 +445,7 @@ Returns: TmpStr = GetStringById (STRING_TOKEN (STR_BOOT_SUCCEEDED)); if (TmpStr != NULL) { BdsLibOutputStrings (gST->ConOut, TmpStr, Option->Description, L"\n\r", NULL); - gBS->FreePool (TmpStr); + FreePool (TmpStr); } } @@ -487,7 +487,7 @@ Returns: TmpStr = GetStringById (STRING_TOKEN (STR_BOOT_FAILED)); if (TmpStr != NULL) { BdsLibOutputStrings (gST->ConOut, TmpStr, Option->Description, L"\n\r", NULL); - gBS->FreePool (TmpStr); + FreePool (TmpStr); } }