mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Files can be empty.
This commit is contained in:
@@ -59,8 +59,14 @@ namespace DiscImageChef.Filesystems.LisaFS
|
|||||||
|
|
||||||
public override Errno Read(string path, long offset, long size, ref byte[] buf)
|
public override Errno Read(string path, long offset, long size, ref byte[] buf)
|
||||||
{
|
{
|
||||||
if(offset < 0 || size < 0)
|
if(size == 0)
|
||||||
return Errno.EINVAL;
|
{
|
||||||
|
buf = new byte[0];
|
||||||
|
return Errno.NoError;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(offset < 0)
|
||||||
|
return Errno.InvalidArgument;
|
||||||
|
|
||||||
Int16 fileId;
|
Int16 fileId;
|
||||||
bool isDir;
|
bool isDir;
|
||||||
|
|||||||
Reference in New Issue
Block a user