From 7f73fa2a8642e03582113260abb8cb02944198a6 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 22 Mar 2020 18:13:23 +0300 Subject: [PATCH] Fix mishandling trailing newline --- UEFIPatch/uefipatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;