Use shallow copy to return FATX statfs.

This commit is contained in:
2019-04-26 22:52:43 +01:00
parent 79d7441db4
commit 956be54b1b
2 changed files with 3 additions and 1 deletions

View File

@@ -241,6 +241,8 @@ namespace DiscImageChef.CommonTypes.Structs
{
Id = new FileSystemId();
}
public FileSystemInfo ShallowCopy() => (FileSystemInfo)MemberwiseClone();
}
[StructLayout(LayoutKind.Explicit)]

View File

@@ -243,7 +243,7 @@ namespace DiscImageChef.Filesystems.FATX
stat = null;
if(!mounted) return Errno.AccessDenied;
stat = statfs;
stat = statfs.ShallowCopy();
return Errno.NoError;
}