Skip to content

Commit

Permalink
Fix pointer offset when setting new order
Browse files Browse the repository at this point in the history
  • Loading branch information
Inokinoki committed Nov 13, 2024
1 parent 7057f45 commit 0d8e013
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qefientrystaticlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ void QEFIEntryStaticList::setBootOrder(const QList<quint16> &newOrder)
quint16 *p = (quint16 *)orderBuffer.data();
for (const auto &i: newOrder) {
*p = qToLittleEndian<quint16>(i);
p++;
}
qefi_set_variable(g_efiUuid,
QStringLiteral("BootOrder"), orderBuffer);
Expand Down

0 comments on commit 0d8e013

Please sign in to comment.