From a6c017986bc69b2f6b20037eaee2b818b3bd64f0 Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Fri, 30 Aug 2024 20:42:16 +0200 Subject: [PATCH] fix: Handle loaders with new lines at the top instead of intel hex style right at the start --- WPinternals/Models/QualcommLoader.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WPinternals/Models/QualcommLoader.cs b/WPinternals/Models/QualcommLoader.cs index 2506092..07a6289 100644 --- a/WPinternals/Models/QualcommLoader.cs +++ b/WPinternals/Models/QualcommLoader.cs @@ -89,6 +89,11 @@ namespace WPinternals foreach (string Line in Lines) { + if (string.IsNullOrEmpty(Line)) + { + continue; + } + if (Line[0] != ':') { throw new BadImageFormatException();