diff options
author | Shumin Qiu <shumin.qiu@intel.com> | 2014-01-07 01:51:08 +0000 |
---|---|---|
committer | shenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-01-07 01:51:08 +0000 |
commit | de4ebdcfcdc3c9949295d0a0bc72015a4e2f61fe (patch) | |
tree | 74097ffe41813ebc1583c72292247cb0cc43da7c /ShellPkg/Application | |
parent | 56a9e699dd04da798417732265404b70fe879866 (diff) | |
download | edk2-de4ebdcfcdc3c9949295d0a0bc72015a4e2f61fe.zip edk2-de4ebdcfcdc3c9949295d0a0bc72015a4e2f61fe.tar.gz edk2-de4ebdcfcdc3c9949295d0a0bc72015a4e2f61fe.tar.bz2 |
Add the comment for function 'IsValidSplit' in 'Shell.c'. Add code to check whether pointer 'DataBuffer' in 'DmpStore.c' is NULL before used.
Signed-off-by: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15051 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r-- | ShellPkg/Application/Shell/Shell.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index ea14202..44469ba 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -1,7 +1,7 @@ /** @file
This is THE shell (application)
- Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2013, Hewlett-Packard Development Company, L.P.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -1593,6 +1593,15 @@ GetOperationType( return (Unknown_Invalid);
}
+/**
+ Determine if the first item in a command line is valid.
+
+ @param[in] CmdLine The command line to parse.
+
+ @retval EFI_SUCCESS The item is valid.
+ @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
+ @retval EFI_NOT_FOUND The operation type is unknown or invalid.
+**/
EFI_STATUS
EFIAPI
IsValidSplit(
|