Kernel: AML package doesn't mark ZeroOp as NullName reference

This commit is contained in:
Bananymous 2024-04-12 16:10:16 +03:00
parent 74940ed33c
commit 6b43d12469
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ namespace Kernel::ACPI::AML
BAN::RefPtr<AML::Node> element;
// Store name strings as references
if (AML::NameString::can_parse(package_context.aml_data))
if (package_context.aml_data[0] != 0x00 && AML::NameString::can_parse(package_context.aml_data))
{
auto name = AML::NameString::parse(package_context.aml_data);
if (!name.has_value())