/* Get prompt string id from the opcode data buffer. */
EFI_STRING_ID GetPrompt(IN EFI_IFR_OP_HEADER *OpCode)
/* Get prompt string id from the opcode data buffer. */
EFI_STRING_ID GetPrompt(IN EFI_IFR_OP_HEADER *OpCode)
{
  EFI_IFR_STATEMENT_HEADER  *Header;
  if (OpCode->Length <= sizeof (EFI_IFR_OP_HEADER)) {
    return 0;
  }
  Header = (EFI_IFR_STATEMENT_HEADER  *)(OpCode + 1);
  return Header->Prompt;
}