From 4e1005eca7186cbe61aaae09108f6fdf29959f22 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Mon, 28 Jul 2014 07:52:57 +0000 Subject: Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15695 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 4 +++- MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c | 4 +++- MdeModulePkg/Core/Dxe/Hand/DriverSupport.c | 2 ++ MdeModulePkg/Core/Dxe/Hand/Locate.c | 3 ++- MdeModulePkg/Core/Dxe/Image/Image.c | 5 ++++- MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c | 5 ++++- 6 files changed, 18 insertions(+), 5 deletions(-) (limited to 'MdeModulePkg/Core') diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index a70e2e45d5..c378ca5b4c 100644 --- a/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -26,7 +26,7 @@ Depex - Dependency Expresion. SOR - Schedule On Request - Don't schedule if this bit is set. -Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2014, 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 @@ -1142,6 +1142,8 @@ CoreFwVolEventProtocolNotify ( VOID *DepexBuffer; KNOWN_HANDLE *KnownHandle; + FvHandle = NULL; + while (TRUE) { BufferSize = sizeof (EFI_HANDLE); Status = CoreLocateHandle ( diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c index e5405b325b..034520c5c6 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c @@ -3,7 +3,7 @@ the Dxe Core. The mArchProtocols[] array represents a list of events that represent the Architectural Protocols. -Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2014, 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 @@ -122,6 +122,8 @@ GenericProtocolNotify ( LIST_ENTRY *Link; LIST_ENTRY TempLinkNode; + Protocol = NULL; + // // Get Entry from Context // diff --git a/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c b/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c index 92218ee7aa..33dd0bd0b7 100644 --- a/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c +++ b/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c @@ -416,6 +416,8 @@ CoreConnectSingleController ( DriverBindingHandleBuffer = NULL; NumberOfSortedDriverBindingProtocols = 0; SortedDriverBindingProtocols = NULL; + PlatformDriverOverride = NULL; + NewDriverBindingHandleBuffer = NULL; // // Get list of all Driver Binding Protocol Instances diff --git a/MdeModulePkg/Core/Dxe/Hand/Locate.c b/MdeModulePkg/Core/Dxe/Hand/Locate.c index d4bc63c2ee..d98b55ab93 100644 --- a/MdeModulePkg/Core/Dxe/Hand/Locate.c +++ b/MdeModulePkg/Core/Dxe/Hand/Locate.c @@ -1,7 +1,7 @@ /** @file Locate handle functions -Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2014, 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 @@ -449,6 +449,7 @@ CoreLocateDevicePath ( return EFI_INVALID_PARAMETER; } + Handles = NULL; BestDevice = NULL; SourcePath = *DevicePath; TmpDevicePath = SourcePath; diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index 8a3e869be6..e7ad450db5 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -1,7 +1,7 @@ /** @file Core image handling services to load and unload PeImage. -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2014, 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 @@ -854,6 +854,9 @@ CoreUnloadAndCloseImage ( UINTN OpenInfoCount; UINTN OpenInfoIndex; + HandleBuffer = NULL; + ProtocolGuidArray = NULL; + if (Image->Ebc != NULL) { // // If EBC protocol exists we must perform cleanups for this image. diff --git a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c index ad3f58fa21..e5e3926e3a 100644 --- a/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c +++ b/MdeModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c @@ -27,7 +27,7 @@ 3) A support protocol is not found, and the data is not available to be read without it. This results in EFI_PROTOCOL_ERROR. -Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2014, 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 @@ -513,6 +513,8 @@ VerifyGuidedSectionGuid ( VOID *Interface; EFI_STATUS Status; + Interface = NULL; + // // Check if there is the Guided Section GUID configuration table recorded the GUID itself. // @@ -1229,6 +1231,7 @@ GetSection ( EFI_COMMON_SECTION_HEADER *Section; + ChildStreamNode = NULL; OldTpl = CoreRaiseTpl (TPL_NOTIFY); Instance = SectionInstance + 1; -- cgit v1.2.3