NTFileSystemAdapter: Return STATUS_END_OF_FILE when applicable

This commit is contained in:
Tal Aloni 2019-07-09 14:04:11 +03:00
parent efa9499719
commit 431a62ce6f

View file

@ -378,6 +378,11 @@ namespace SMBLibrary
return NTStatus.STATUS_ACCESS_DENIED;
}
if (offset >= stream.Length)
{
return NTStatus.STATUS_END_OF_FILE;
}
int bytesRead;
try
{