mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-26 09:58:22 +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;
|
UINT8 counter = 0;
|
||||||
while (!file.atEnd()) {
|
while (!file.atEnd()) {
|
||||||
QByteArray line = file.readLine();
|
QByteArray line = file.readLine().trimmed();
|
||||||
// Use sharp sign as commentary
|
// Use sharp sign as commentary
|
||||||
if (line.count() == 0 || line[0] == '#')
|
if (line.count() == 0 || line[0] == '#')
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user