From bdf0da37c92fc544100f8a809fcd8ceee67c045d Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Tue, 22 Mar 2016 10:38:01 +0800 Subject: MdeModulePkg/BootMaintManagerUiLib: Declare EFIAPI for ChooseFile handler The BootMaintenanceManagerUiLib use ChooseFile() from FileExplorerLib to select files. And the third parameter in ChooseFile() is CHOOSE_HANDLER, per the definition of CHOOSE_HANDLER, it must use EFIAPI as the calling convention. But the calling convention was not specified for following handlers: CreateBootOptionFromFile, CreateDriverOptionFromFile, BootFromFile. Now specifies the calling convention for those functions. Cc: Liming Gao Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong Reviewed-by: Gary Lin --- .../Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h') diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h index 2c93446a05..d60731431e 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h @@ -1305,6 +1305,7 @@ BootMaintCallback ( **/ BOOLEAN +EFIAPI CreateBootOptionFromFile ( IN EFI_DEVICE_PATH_PROTOCOL *FilePath ); @@ -1318,6 +1319,7 @@ CreateBootOptionFromFile ( @retval FALSE Not exit caller function. **/ BOOLEAN +EFIAPI CreateDriverOptionFromFile ( IN EFI_DEVICE_PATH_PROTOCOL *FilePath ); @@ -1332,6 +1334,7 @@ CreateDriverOptionFromFile ( **/ BOOLEAN +EFIAPI BootFromFile ( IN EFI_DEVICE_PATH_PROTOCOL *FilePath ); -- cgit v1.2.3