Fix mishandling trailing newline

This commit is contained in:
vit9696 2020-03-22 18:13:23 +03:00
parent fa369a07f6
commit 7f73fa2a86

View file

@ -58,7 +58,7 @@ UINT8 UEFIPatch::patchFromFile(const QString & path, const QString & patches, co
UINT8 counter = 0;
while (!file.atEnd()) {
QByteArray line = file.readLine();
QByteArray line = file.readLine().trimmed();
// Use sharp sign as commentary
if (line.count() == 0 || line[0] == '#')
continue;