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:
lgao4 2010-12-09 12:20:36 +00:00
parent 0b29a17e26
commit 9ac0640d9c
1 changed files with 6 additions and 3 deletions

View File

@ -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: