From 2b10e2fb597ae22605e1a20931198708ebbb6154 Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Thu, 3 Sep 2026 06:09:07 -0400 Subject: [PATCH] GP-0: Fixing bitwise check values in NE InformationBlock.java (Closes #9579) --- .../app/util/bin/format/ne/InformationBlock.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java index 32dfcd6fd1..b3b3894da7 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/InformationBlock.java @@ -148,19 +148,23 @@ public class InformationBlock { /** * Supports long names */ - public final static byte OTHER_FLAGS_SUPPORTS_LONG_NAMES = (byte) 0x00; + public final static byte OTHER_FLAGS_SUPPORTS_LONG_NAMES = (byte) 0x01; /** * Protected mode */ - public final static byte OTHER_FLAGS_PROTECTED_MODE = (byte) 0x01; + public final static byte OTHER_FLAGS_PROTECTED_MODE = (byte) 0x02; /** * Proportional font */ - public final static byte OTHER_FLAGS_PROPORTIONAL_FONT = (byte) 0x02; + public final static byte OTHER_FLAGS_PROPORTIONAL_FONT = (byte) 0x04; /** * Gangload area */ - public final static byte OTHER_FLAGS_GANGLOAD_AREA = (byte) 0x04; + public final static byte OTHER_FLAGS_GANGLOAD_AREA = (byte) 0x08; + /** + * WLO application + */ + public final static byte OTHER_FLAGS_WLO_APP = (byte) 0x80; private short ne_magic; // Magic number private byte ne_ver; // Version number @@ -333,6 +337,9 @@ public class InformationBlock { */ public String getOtherFlagsAsString() { StringBuffer buffer = new StringBuffer(); + if ((ne_flagsothers & OTHER_FLAGS_WLO_APP) != 0) { + buffer.append(TAB + "WLO Application" + "\n"); + } if ((ne_flagsothers & OTHER_FLAGS_GANGLOAD_AREA) != 0) { buffer.append(TAB + "Gangload Area" + "\n"); }