From 1b94957b077402c2b50d6b6226c17d41fb040672 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 18 Dec 2024 18:28:16 +0200 Subject: [PATCH] Kernel: Copy AML NameString base when moving it :) --- kernel/include/kernel/ACPI/AML/Node.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/include/kernel/ACPI/AML/Node.h b/kernel/include/kernel/ACPI/AML/Node.h index 2f7c091b..1eaf8e57 100644 --- a/kernel/include/kernel/ACPI/AML/Node.h +++ b/kernel/include/kernel/ACPI/AML/Node.h @@ -24,10 +24,12 @@ namespace Kernel::ACPI::AML public: NameString() = default; NameString(NameString&& other) - : parts(BAN::move(other.parts)) + : base(other.base) + , parts(BAN::move(other.parts)) {} NameString& operator=(NameString&& other) { + base = other.base; parts = BAN::move(other.parts); return *this; }