From b8e89849fe0a0cd9b5c824cd2d35ac6f211565dc Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 6 Mar 2018 17:39:48 +0000 Subject: [PATCH] Some OS/2 executables contain Windows "RT_ICON" resources, in OS/2 NE format, so show them as such in the GUI. --- exeinfogui/NE/TabNeResources.xeto.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exeinfogui/NE/TabNeResources.xeto.cs b/exeinfogui/NE/TabNeResources.xeto.cs index c26a50b..2e5e1aa 100644 --- a/exeinfogui/NE/TabNeResources.xeto.cs +++ b/exeinfogui/NE/TabNeResources.xeto.cs @@ -135,6 +135,17 @@ namespace exeinfogui.NE catch { goto default; } break; + case "RT_MENU" when (libexeinfo.NE.TargetOS)((TreeGridItem)treeResources.SelectedItem).Values[4] == + libexeinfo.NE.TargetOS.OS2: + if(BitConverter.ToUInt32(data, 0) == 40) + { + // Some OS/2 executables contain Windows "RT_ICON" resources, in OS/2 NE format + pnlResource.Content = panelWindowsIcon; + panelWindowsIcon.Update(data); + break; + } + + goto default; case "RT_ICON": pnlResource.Content = panelWindowsIcon; panelWindowsIcon.Update(data);