From 0f42527e58792cbcc262573430aeaeca350aa6d4 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Tue, 16 Mar 2021 09:45:34 +0300 Subject: [PATCH] OcAcpiLib: Fixed ACPI table magic corruption during patching --- Changelog.md | 1 + Library/OcAcpiLib/OcAcpiLib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 9494e11b..9fa643fc 100644 --- a/Changelog.md +++ b/Changelog.md @@ -18,6 +18,7 @@ OpenCore Changelog - Added TSC frequency reading from Apple Platform Info - Added TSC frequency reading for Apple devices with nForce chipsets - Added `Base` and `BaseSkip` lookup for ACPI patches +- Fixed ACPI table magic corruption during patching #### v0.6.7 - Fixed ocvalidate return code to be non-zero when issues are found diff --git a/Library/OcAcpiLib/OcAcpiLib.c b/Library/OcAcpiLib/OcAcpiLib.c index 927f4b63..63c8145d 100755 --- a/Library/OcAcpiLib/OcAcpiLib.c +++ b/Library/OcAcpiLib/OcAcpiLib.c @@ -150,7 +150,7 @@ AcpiReadSignature ( Result = Common->Signature; - Walker = (CHAR8 *) &Common->Signature; + Walker = (CHAR8 *) &Result; for (Index = 0; Index < sizeof (Common->Signature); Index++) { if (!IsAsciiPrint (Walker[Index])) { Walker[Index] = '?';