/** @file\r
File explorer related functions.\r
\r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available under\r
the terms and conditions of the BSD License that accompanies this distribution.\r
The full text of the license may be found at\r
&gFileExplorerPrivate.FeConfigAccess,\r
NULL\r
);\r
- ASSERT_EFI_ERROR (Status);\r
+ if (Status == EFI_ALREADY_STARTED) {\r
+ return EFI_SUCCESS;\r
+ }\r
+ if (EFI_ERROR (Status)) {\r
+ return Status;\r
+ }\r
\r
//\r
// Post our File Explorer VFR binary to the HII database.\r
\r
ASSERT (gHiiVendorDevicePath != NULL);\r
\r
- Status = gBS->UninstallMultipleProtocolInterfaces (\r
- gFileExplorerPrivate.FeDriverHandle,\r
- &gEfiDevicePathProtocolGuid,\r
- gHiiVendorDevicePath,\r
- &gEfiHiiConfigAccessProtocolGuid,\r
- &gFileExplorerPrivate.FeConfigAccess,\r
- NULL\r
- );\r
- ASSERT_EFI_ERROR (Status);\r
- \r
- HiiRemovePackages (gFileExplorerPrivate.FeHiiHandle);\r
+ if (gFileExplorerPrivate.FeDriverHandle != NULL) {\r
+ Status = gBS->UninstallMultipleProtocolInterfaces (\r
+ gFileExplorerPrivate.FeDriverHandle,\r
+ &gEfiDevicePathProtocolGuid,\r
+ gHiiVendorDevicePath,\r
+ &gEfiHiiConfigAccessProtocolGuid,\r
+ &gFileExplorerPrivate.FeConfigAccess,\r
+ NULL\r
+ );\r
+ ASSERT_EFI_ERROR (Status);\r
+ \r
+ HiiRemovePackages (gFileExplorerPrivate.FeHiiHandle);\r
+ }\r
\r
FreePool (gHiiVendorDevicePath);\r
\r
## @file\r
# library defines a set of interfaces for how to do file explorer.\r
# \r
-# Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available under\r
# the terms and conditions of the BSD License that accompanies this distribution.\r
# The full text of the license may be found at\r
gEfiLoadFileProtocolGuid ## CONSUMES\r
gEfiHiiConfigAccessProtocolGuid ## CONSUMES\r
gEfiFormBrowser2ProtocolGuid ## CONSUMES\r
- gEfiDevicePathToTextProtocolGuid ## CONSUMES
\ No newline at end of file
+ gEfiDevicePathToTextProtocolGuid ## CONSUMES\r
+\r
+[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]\r
+ gEfiFormBrowser2ProtocolGuid AND gEfiHiiDatabaseProtocolGuid
\ No newline at end of file