mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-06 07:44:57 +02:00
NTFileSystemAdapter: Return STATUS_END_OF_FILE when applicable
This commit is contained in:
parent
efa9499719
commit
431a62ce6f
1 changed files with 5 additions and 0 deletions
|
@ -378,6 +378,11 @@ namespace SMBLibrary
|
|||
return NTStatus.STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
if (offset >= stream.Length)
|
||||
{
|
||||
return NTStatus.STATUS_END_OF_FILE;
|
||||
}
|
||||
|
||||
int bytesRead;
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue