Update code to support VS2013 tool chain.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15704 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1318,6 +1318,8 @@ EfiShellDeleteFileByName(
|
|||||||
SHELL_FILE_HANDLE FileHandle;
|
SHELL_FILE_HANDLE FileHandle;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
|
FileHandle = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// get a handle to the file
|
// get a handle to the file
|
||||||
//
|
//
|
||||||
@ -1960,6 +1962,7 @@ EfiShellFindFilesInDir(
|
|||||||
UINTN Size;
|
UINTN Size;
|
||||||
CHAR16 *TempSpot;
|
CHAR16 *TempSpot;
|
||||||
|
|
||||||
|
BasePath = NULL;
|
||||||
Status = FileHandleGetFileName(FileDirHandle, &BasePath);
|
Status = FileHandleGetFileName(FileDirHandle, &BasePath);
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
return (Status);
|
return (Status);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Implements editor interface functions.
|
Implements editor interface functions.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved. <BR>
|
Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved. <BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
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 :
|
// IF cursor is not on valid line, an Status String will be prompted :
|
||||||
// "Nothing to Cut".
|
// "Nothing to Cut".
|
||||||
//
|
//
|
||||||
|
Line = NULL;
|
||||||
Status = FileBufferCutLine (&Line);
|
Status = FileBufferCutLine (&Line);
|
||||||
if (Status == EFI_NOT_FOUND) {
|
if (Status == EFI_NOT_FOUND) {
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Main file for Dh shell Driver1 function.
|
Main file for Dh shell Driver1 function.
|
||||||
|
|
||||||
Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -283,6 +283,8 @@ DisplayDriverModelHandle (
|
|||||||
UINTN ChildIndex;
|
UINTN ChildIndex;
|
||||||
BOOLEAN Image;
|
BOOLEAN Image;
|
||||||
|
|
||||||
|
DriverName = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// See if Handle is a device handle and display its details.
|
// See if Handle is a device handle and display its details.
|
||||||
//
|
//
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Main file for attrib shell level 2 function.
|
Main file for attrib shell level 2 function.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -39,6 +39,7 @@ IsDirectoryEmpty (
|
|||||||
|
|
||||||
RetVal = TRUE;
|
RetVal = TRUE;
|
||||||
NoFile = FALSE;
|
NoFile = FALSE;
|
||||||
|
FileInfo = NULL;
|
||||||
|
|
||||||
for (FileHandleFindFirstFile(FileHandle, &FileInfo)
|
for (FileHandleFindFirstFile(FileHandle, &FileInfo)
|
||||||
; !NoFile
|
; !NoFile
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Main file for Pause shell level 3 function.
|
Main file for Pause shell level 3 function.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved. <BR>
|
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved. <BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -40,6 +40,7 @@ ShellCommandRunPause (
|
|||||||
|
|
||||||
ProblemParam = NULL;
|
ProblemParam = NULL;
|
||||||
ShellStatus = SHELL_SUCCESS;
|
ShellStatus = SHELL_SUCCESS;
|
||||||
|
Resp = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// initialize the shell lib (we must be in non-auto-init...)
|
// initialize the shell lib (we must be in non-auto-init...)
|
||||||
|
Reference in New Issue
Block a user