mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 16:08:23 +08:00
Fix mishandling trailing newline
This commit is contained in:
parent
fa369a07f6
commit
7f73fa2a86
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user