Main file for cp shell level 2 function.\r
\r
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
- Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
// possibly return based on response\r
//\r
if (!SilentMode) {\r
+ if (Response == NULL) {\r
+ return SHELL_ABORTED;\r
+ }\r
switch (*(SHELL_PROMPT_RESPONSE*)Response) {\r
case ShellPromptResponseNo:\r
//\r
Main file for mv shell level 2 function.\r
\r
(C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
- Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
if (Response == NULL) {\r
ShellPromptForResponseHii(ShellPromptResponseTypeYesNoAllCancel, STRING_TOKEN (STR_GEN_DEST_EXIST_OVR), gShellLevel2HiiHandle, &Response);\r
}\r
+ if (Response == NULL) {\r
+ return SHELL_ABORTED;\r
+ }\r
switch (*(SHELL_PROMPT_RESPONSE*)Response) {\r
case ShellPromptResponseNo:\r
FreePool(Response);\r