mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-19 19:54:25 +02:00
NetworkPkg/SnpDxe: Use PcdGetBool() instead of FixedPcdGetBool in Snp.c
This patch fixes a problem introduced by commit 61bb6eeb4d93c0a34c1995d87914ab41398f9550. The PcdSnpCreateExitBootServicesEvent is not guaranteed to be FixedAtBuild, so use PcdGetBool() to supports both fixed and patchable PCD. Cc: Jiaxin Wu <jiaxin.wu@intel.com> Signed-off-by: Siyuan Fu <siyuan.fu@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
parent
d4269c8e7c
commit
6f3ac73cd3
@ -647,7 +647,7 @@ SimpleNetworkDriverStart (
|
||||
PxeShutdown (Snp);
|
||||
PxeStop (Snp);
|
||||
|
||||
if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
||||
if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
||||
//
|
||||
// Create EXIT_BOOT_SERIVES Event
|
||||
//
|
||||
@ -780,7 +780,7 @@ SimpleNetworkDriverStop (
|
||||
return Status;
|
||||
}
|
||||
|
||||
if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
||||
if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {
|
||||
//
|
||||
// Close EXIT_BOOT_SERIVES Event
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user