CHERRY_PICK: MinPlatformPkg/TestPointCheckLib: Make OutTable parameter optional (#34)

Makes the OutTable parameter in DumpAcpiRsdt() and DumpAcpiXsdt()
optional since the pointer passed can be NULL if the Signature
pointer is also NULL.

Can fix a potential failure in TestPointCheckAcpi().

Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
(cherry picked from commit 89fb75a)
This commit is contained in:
Michael Kubacki 2022-03-07 23:45:04 -05:00 коммит произвёл GitHub
Родитель 8bf73f5431
Коммит 61f750914e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 20 добавлений и 16 удалений

Просмотреть файл

@ -592,7 +592,7 @@ EFI_STATUS
DumpAcpiRsdt (
IN EFI_ACPI_DESCRIPTION_HEADER *Rsdt,
IN UINT32 *Signature, OPTIONAL
OUT VOID **OutTable,
OUT VOID **OutTable, OPTIONAL // MS_CHANGE_2154918
IN BOOLEAN DumpPrint,
IN BOOLEAN CheckResource
)
@ -610,7 +610,9 @@ DumpAcpiRsdt (
if (OutTable != NULL) {
*OutTable = NULL;
} else {
} else if ((OutTable == NULL) && // MS_CHANGE_2154918
(Signature != NULL))
{
return EFI_INVALID_PARAMETER;
}
@ -646,7 +648,7 @@ EFI_STATUS
DumpAcpiXsdt (
IN EFI_ACPI_DESCRIPTION_HEADER *Xsdt,
IN UINT32 *Signature, OPTIONAL
OUT VOID **OutTable,
OUT VOID **OutTable, OPTIONAL // MS_CHANGE_2154918
IN BOOLEAN DumpPrint,
IN BOOLEAN CheckResource
)
@ -665,7 +667,9 @@ DumpAcpiXsdt (
if (OutTable != NULL) {
*OutTable = NULL;
} else {
} else if ((OutTable == NULL) && // MS_CHANGE_2154918
(Signature != NULL))
{
return EFI_INVALID_PARAMETER;
}