From 14b9f5affce9e00f78ac53708ef67bbdea4bad92 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 8 May 2017 21:45:30 -0700 Subject: [PATCH] tst: memfs-dotnet: fix rename_caseins_test --- tst/memfs-dotnet/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tst/memfs-dotnet/Program.cs b/tst/memfs-dotnet/Program.cs index 3eb0494c..a157c3c8 100644 --- a/tst/memfs-dotnet/Program.cs +++ b/tst/memfs-dotnet/Program.cs @@ -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 DescendantFileNames = new List(FileNodeMap.GetDescendantFileNames(FileNode));