sys: FspFileNodeRenameCheck: allow multiple handles open on the file being renamed

This commit is contained in:
Bill Zissimopoulos
2016-12-31 15:28:26 -08:00
parent 2210561b65
commit 13d6ec3638
3 changed files with 100 additions and 4 deletions

View File

@ -1293,8 +1293,7 @@ NTSTATUS FspFileNodeRenameCheck(PDEVICE_OBJECT FsvolDeviceObject, PIRP OplockIrp
if (0 == DescendantFileNode)
break;
/* if this is the FileNode being renamed then HandleCount must be 1, else 0 */
if ((DescendantFileNode == FileNode) < DescendantFileNode->HandleCount)
if (DescendantFileNode != FileNode && 0 < DescendantFileNode->HandleCount)
{
/* release the FileNode in case of failure! */
FspFileNodeReleaseF(FileNode, AcquireFlags);