Some OS/2 executables contain Windows "RT_ICON" resources, in OS/2 NE format, so show them as such in the GUI.

This commit is contained in:
2018-03-06 17:39:48 +00:00
parent 095221a349
commit b8e89849fe

View File

@@ -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);