diff --git a/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c b/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c index 91ce7f6468..87ae3879a0 100644 --- a/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c +++ b/Nt32Pkg/Library/PeiNt32PeCoffLib/PeiNt32PeCoffLib.c @@ -26,6 +26,7 @@ Abstract: #include #include #include +#include EFI_PEI_PE_COFF_LOADER_PROTOCOL *mPeiEfiPeiPeCoffLoader; @@ -63,13 +64,12 @@ PeiNt32PeCoffLibConstructor ( // // GuidHob is not ready, try to locate PeCoffLoader guid structure. // - Status = (*PeiServices)->LocatePpi ( - PeiServices, - &gEfiPeiPeCoffLoaderGuid, - 0, - NULL, - (VOID**)&mPeiEfiPeiPeCoffLoader - ); + Status = PeiServicesLocatePpi ( + &gEfiPeiPeCoffLoaderGuid, + 0, + NULL, + (VOID**) &mPeiEfiPeiPeCoffLoader + ); // // PeCofferLoader guid structure must be installed before this library runs.