Fix marshaling of remote IAmRoot packet.

This commit is contained in:
2019-11-01 01:10:34 +00:00
parent 9597030ab5
commit 67a524e5ba
2 changed files with 2 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ namespace DiscImageChef.Devices.Remote
var res = Marshal.ByteArrayToStructureLittleEndian<DicPacketResAmIRoot>(buf); var res = Marshal.ByteArrayToStructureLittleEndian<DicPacketResAmIRoot>(buf);
return res.am_i_root; return res.am_i_root != 0;
} }
} }

View File

@@ -331,6 +331,6 @@ namespace DiscImageChef.Devices.Remote
public struct DicPacketResAmIRoot public struct DicPacketResAmIRoot
{ {
public DicPacketHeader hdr; public DicPacketHeader hdr;
[MarshalAs(UnmanagedType.U4)] public bool am_i_root; public uint am_i_root;
} }
} }