mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use shallow copy to return FATX statfs.
This commit is contained in:
@@ -241,6 +241,8 @@ namespace DiscImageChef.CommonTypes.Structs
|
|||||||
{
|
{
|
||||||
Id = new FileSystemId();
|
Id = new FileSystemId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FileSystemInfo ShallowCopy() => (FileSystemInfo)MemberwiseClone();
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
[StructLayout(LayoutKind.Explicit)]
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ namespace DiscImageChef.Filesystems.FATX
|
|||||||
stat = null;
|
stat = null;
|
||||||
if(!mounted) return Errno.AccessDenied;
|
if(!mounted) return Errno.AccessDenied;
|
||||||
|
|
||||||
stat = statfs;
|
stat = statfs.ShallowCopy();
|
||||||
|
|
||||||
return Errno.NoError;
|
return Errno.NoError;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user