From dd45384226a1e137e294424d5ef5323263cbbc84 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 15 May 2024 15:15:09 -0400 Subject: [PATCH] Add secondary check for WinZipSFX NE --- BinaryObjectScanner/Packer/WinZipSFX.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BinaryObjectScanner/Packer/WinZipSFX.cs b/BinaryObjectScanner/Packer/WinZipSFX.cs index 57c20a80..1e7a0bf3 100644 --- a/BinaryObjectScanner/Packer/WinZipSFX.cs +++ b/BinaryObjectScanner/Packer/WinZipSFX.cs @@ -20,10 +20,13 @@ namespace BinaryObjectScanner.Packer if (nex.Model.ResidentNameTable == null) return null; - // Check for the WinZip name string + // Check for the WinZip name strings bool winZipNameFound = nex.Model.ResidentNameTable .Select(rnte => rnte?.NameString == null ? string.Empty : Encoding.ASCII.GetString(rnte.NameString)) .Any(s => s.Contains("WZ-SE-01")); + winZipNameFound |= nex.Model.NonResidentNameTable? + .Select(nrnte => nrnte?.NameString == null ? string.Empty : Encoding.ASCII.GetString(nrnte.NameString)) + .Any(s => s.Contains("WinZip(R) Self-Extractor")) ?? false; // If we didn't find it if (!winZipNameFound)