MdeModulePkg/DpcLib: return error if failed to locate DPC protocol.

This patch updates the constructor of DpcLib to return error if failed to
locate DPC protocol.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
Fu Siyuan 2017-12-22 14:13:12 +08:00
parent 15720a6cde
commit c7285227e7
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ DpcLibConstructor (
Status = gBS->LocateProtocol (&gEfiDpcProtocolGuid, NULL, (VOID **)&mDpc);
ASSERT_EFI_ERROR (Status);
return EFI_SUCCESS;
return Status;
}
/**