From 2646265069086fecc5bdf9dae56bc7d4d756edfb Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Wed, 8 Dec 2021 23:30:58 +0100 Subject: [PATCH] #2565: Improve GetFileNameForResource: Assume that input is already a filename. --- .../CSharp/ProjectDecompiler/WholeProjectDecompiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs index a05a15393..6b0bf55fe 100644 --- a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs +++ b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs @@ -363,7 +363,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler { // Clean up the name first and ensure the length does not exceed the maximum length // supported by the OS. - fullName = CleanUpDirectoryName(fullName); + fullName = SanitizeFileName(fullName); // The purpose of the below algorithm is to "maximize" the directory name and "minimize" the file name. // That is, a full name of the form "Namespace1.Namespace2{...}.NamespaceN.ResourceName" is split such that // the directory part Namespace1\Namespace2\... reuses as many existing directories as