From 0d8e0131887b9447426477070e0173aa84634322 Mon Sep 17 00:00:00 2001 From: Inoki Date: Wed, 13 Nov 2024 23:30:35 +0100 Subject: [PATCH] Fix pointer offset when setting new order --- qefientrystaticlist.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qefientrystaticlist.cpp b/qefientrystaticlist.cpp index dafc06d..866f77f 100644 --- a/qefientrystaticlist.cpp +++ b/qefientrystaticlist.cpp @@ -119,6 +119,7 @@ void QEFIEntryStaticList::setBootOrder(const QList &newOrder) quint16 *p = (quint16 *)orderBuffer.data(); for (const auto &i: newOrder) { *p = qToLittleEndian(i); + p++; } qefi_set_variable(g_efiUuid, QStringLiteral("BootOrder"), orderBuffer);