mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-23 11:37:05 -04:00
Fix mishandling trailing newline
This commit is contained in:
parent
fa369a07f6
commit
7f73fa2a86
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue