/* Locate and return the protocol instance identified by the ProtocolGuid. */
VOID* UefiDevicePathLibLocateProtocol(EFI_GUID *ProtocolGuid)
/* Locate and return the protocol instance identified by the ProtocolGuid. */
VOID* UefiDevicePathLibLocateProtocol(EFI_GUID *ProtocolGuid)
{
  EFI_STATUS  Status;
  VOID        *Protocol;
  Status = gBS->LocateProtocol (
                  ProtocolGuid,
                  NULL,
                  (VOID **)&Protocol
                  );
  if (EFI_ERROR (Status)) {
    return NULL;
  } else {
    return Protocol;
  }
}