Skip to content

Commit b3aa34c

Browse files
authored
Fix parsing of NDR Union arm types (#71)
When parsing NDR Union arm types, the offset_to_arm_description is incorrectly parsed for certain values. This commit attempts to fix this.
1 parent 06cf769 commit b3aa34c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NtApiDotNet/Ndr/NdrUnionTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal NdrUnionArm(NdrParseContext context, BinaryReader reader)
5353
internal static NdrBaseTypeReference ReadArmType(NdrParseContext context, BinaryReader reader)
5454
{
5555
ushort type = reader.ReadUInt16();
56-
if ((type & 0x8F00) == 0x8000)
56+
if ((type & 0xFF00) == 0x8000)
5757
{
5858
return new NdrSimpleTypeReference((NdrFormatCharacter)(type & 0xFF));
5959
}

0 commit comments

Comments
 (0)