mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix marshaling of remote IAmRoot packet.
This commit is contained in:
@@ -201,7 +201,7 @@ namespace DiscImageChef.Devices.Remote
|
||||
|
||||
var res = Marshal.ByteArrayToStructureLittleEndian<DicPacketResAmIRoot>(buf);
|
||||
|
||||
return res.am_i_root;
|
||||
return res.am_i_root != 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -331,6 +331,6 @@ namespace DiscImageChef.Devices.Remote
|
||||
public struct DicPacketResAmIRoot
|
||||
{
|
||||
public DicPacketHeader hdr;
|
||||
[MarshalAs(UnmanagedType.U4)] public bool am_i_root;
|
||||
public uint am_i_root;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user