summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-15 08:50:58 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-15 08:50:58 +0000
commit5d36285da84ee042d8cfff2ae397b83ff95bfc14 (patch)
treee6ae47e6a042fb999005cb048b7b2e6825a1ce92
parent768e2a903b5edd380f04df141af621db92bd32a1 (diff)
downloadedk2-5d36285da84ee042d8cfff2ae397b83ff95bfc14.zip
edk2-5d36285da84ee042d8cfff2ae397b83ff95bfc14.tar.gz
edk2-5d36285da84ee042d8cfff2ae397b83ff95bfc14.tar.bz2
Fix a PeiServices pointer checking error bug in EfiCommonLib in ECP.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9564 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c b/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c
index b64ccae..13d5457 100644
--- a/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c
+++ b/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c
@@ -1,6 +1,6 @@
/*++
-Copyright (c) 2004, Intel Corporation
+Copyright (c) 2004 - 2009, 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
@@ -337,7 +337,7 @@ Returns:
UINT8 *Buffer8;
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *RootBridgeIo;
- if (mPeiServices == NULL) {
+ if (mPeiServices != NULL) {
//
// The function is called in PEI phase, use PEI interfaces
//