From 0d807dae4adf222ee0c1b3abe504c9a271a46062 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Tue, 29 Jul 2014 02:00:55 +0000 Subject: [PATCH] Update code to support VS2013 tool chain. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15704 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/ShellProtocol.c | 3 +++ .../Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c | 3 ++- ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c | 4 +++- ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c | 3 ++- ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c | 3 ++- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c index 3d01283b60..403bed4516 100644 --- a/ShellPkg/Application/Shell/ShellProtocol.c +++ b/ShellPkg/Application/Shell/ShellProtocol.c @@ -1318,6 +1318,8 @@ EfiShellDeleteFileByName( SHELL_FILE_HANDLE FileHandle; EFI_STATUS Status; + FileHandle = NULL; + // // get a handle to the file // @@ -1960,6 +1962,7 @@ EfiShellFindFilesInDir( UINTN Size; CHAR16 *TempSpot; + BasePath = NULL; Status = FileHandleGetFileName(FileDirHandle, &BasePath); if (EFI_ERROR(Status)) { return (Status); diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c index a1564d4f5a..f972c37839 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c @@ -1,7 +1,7 @@ /** @file Implements editor interface functions. - Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2005 - 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 @@ -489,6 +489,7 @@ MainCommandCutLine ( // IF cursor is not on valid line, an Status String will be prompted : // "Nothing to Cut". // + Line = NULL; Status = FileBufferCutLine (&Line); if (Status == EFI_NOT_FOUND) { return EFI_SUCCESS; diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c index 1bb3191f41..29801949d3 100644 --- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c +++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c @@ -1,7 +1,7 @@ /** @file Main file for Dh shell Driver1 function. - Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 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 @@ -283,6 +283,8 @@ DisplayDriverModelHandle ( UINTN ChildIndex; BOOLEAN Image; + DriverName = NULL; + // // See if Handle is a device handle and display its details. // diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c index c1e01426f8..53db2222f2 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c @@ -1,7 +1,7 @@ /** @file Main file for attrib shell level 2 function. - Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 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 @@ -39,6 +39,7 @@ IsDirectoryEmpty ( RetVal = TRUE; NoFile = FALSE; + FileInfo = NULL; for (FileHandleFindFirstFile(FileHandle, &FileInfo) ; !NoFile diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c b/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c index bedd591c0d..ea414cbd6e 100644 --- a/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c +++ b/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c @@ -1,7 +1,7 @@ /** @file Main file for Pause shell level 3 function. - Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 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 @@ -40,6 +40,7 @@ ShellCommandRunPause ( ProblemParam = NULL; ShellStatus = SHELL_SUCCESS; + Resp = NULL; // // initialize the shell lib (we must be in non-auto-init...) -- 2.39.2