From 5d36285da84ee042d8cfff2ae397b83ff95bfc14 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Tue, 15 Dec 2009 08:50:58 +0000 Subject: [PATCH] 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 --- EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c b/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Misc.c index b64ccaee73..13d5457d39 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 //