mirror of https://github.com/acidanthera/audk.git
EFI_INVALID_PARAMETER should return when the input Block is NULL for ConfigRouting.ConfigToBlock().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11145 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
0b29a17e26
commit
9ac0640d9c
|
@ -3406,13 +3406,16 @@ HiiConfigToBlock (
|
|||
|
||||
if (MaxBlockSize > BufferSize) {
|
||||
*BlockSize = MaxBlockSize;
|
||||
if (Block == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
} else {
|
||||
if (Block != NULL) {
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
if (Block == NULL) {
|
||||
*Progress = ConfigResp;
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
||||
Exit:
|
||||
|
|
Loading…
Reference in New Issue