diff --git a/UEFIPatch/uefipatch.cpp b/UEFIPatch/uefipatch.cpp index c51a44e..8a5edb1 100644 --- a/UEFIPatch/uefipatch.cpp +++ b/UEFIPatch/uefipatch.cpp @@ -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;