From f53d9f94e6c416740524cd659fb29a10087f3daa Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 22 Mar 2024 23:46:05 -0400 Subject: [PATCH] Break if StringFileInfo child is total size 0 --- Extensions.PortableExecutable.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Extensions.PortableExecutable.cs b/Extensions.PortableExecutable.cs index 951c42ec..fc1abfca 100644 --- a/Extensions.PortableExecutable.cs +++ b/Extensions.PortableExecutable.cs @@ -1309,6 +1309,8 @@ namespace SabreTools.Serialization } stringTableChildren.Add(stringData); + if (stringData.Length == 0 && stringData.ValueLength == 0) + break; } stringTable.Children = [.. stringTableChildren];