From ae5e1f400eaca880dfbd2ef09dc515e968be3c02 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 31 May 2020 21:37:16 +0300 Subject: [PATCH] OcAcpiLib: Actually fix SSDT dumping --- Library/OcAcpiLib/AcpiDump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/OcAcpiLib/AcpiDump.c b/Library/OcAcpiLib/AcpiDump.c index 77b855a7..1d2fa7bf 100644 --- a/Library/OcAcpiLib/AcpiDump.c +++ b/Library/OcAcpiLib/AcpiDump.c @@ -73,6 +73,8 @@ AcpiGetTableName ( } } + Name[Index] = '\0'; + for (Index = 0; Index < 256; ++Index) { UnicodeSPrint (TempName, sizeof (TempName), L"%a-%u.aml", Name, (UINT32) (Index + 1));