tst: memfs-dotnet: fix rename_caseins_test

This commit is contained in:
Bill Zissimopoulos 2017-05-08 21:45:30 -07:00
parent 035a430470
commit 14b9f5affc

View File

@ -728,7 +728,8 @@ namespace memfs
if (0 != (NewFileNode.FileInfo.FileAttributes & (UInt32)FileAttributes.Directory))
return STATUS_ACCESS_DENIED;
}
if (null != NewFileNode)
if (null != NewFileNode && FileNode != NewFileNode)
FileNodeMap.Remove(NewFileNode);
List<String> DescendantFileNames = new List<String>(FileNodeMap.GetDescendantFileNames(FileNode));