mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-22 01:05:54 +02:00
SMB1FileStoreHelper: Delete / Rename: Bugfix: The temporary file handle was not closed
This commit is contained in:
parent
5a29ef1556
commit
ea4f524d89
1 changed files with 0 additions and 8 deletions
|
@ -49,10 +49,6 @@ namespace SMBLibrary.Server.SMB1
|
|||
FileDispositionInformation fileDispositionInfo = new FileDispositionInformation();
|
||||
fileDispositionInfo.DeletePending = true;
|
||||
status = fileStore.SetFileInformation(handle, fileDispositionInfo);
|
||||
if (status != NTStatus.STATUS_SUCCESS)
|
||||
{
|
||||
return status;
|
||||
}
|
||||
fileStore.CloseFile(handle);
|
||||
return status;
|
||||
}
|
||||
|
@ -77,10 +73,6 @@ namespace SMBLibrary.Server.SMB1
|
|||
renameInfo.ReplaceIfExists = false;
|
||||
renameInfo.FileName = newName;
|
||||
status = fileStore.SetFileInformation(handle, renameInfo);
|
||||
if (status != NTStatus.STATUS_SUCCESS)
|
||||
{
|
||||
return status;
|
||||
}
|
||||
fileStore.CloseFile(handle);
|
||||
return status;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue