diff --git a/Packages.props b/Packages.props
index 77a8056aa82..02e17a2fa77 100644
--- a/Packages.props
+++ b/Packages.props
@@ -25,7 +25,7 @@
-
+
diff --git a/core/src/main/csharp/Windows/Win32/PCWSTR.cs b/core/src/main/csharp/Windows/Win32/PCWSTR.cs
index 5cc38a82ebd..4d6af801507 100644
--- a/core/src/main/csharp/Windows/Win32/PCWSTR.cs
+++ b/core/src/main/csharp/Windows/Win32/PCWSTR.cs
@@ -15,5 +15,5 @@ public static PCWSTR DangerousFromSpan(in ReadOnlySpan value)
public PWSTR DangerousAsPWSTR() => Value;
- public string ToString(int length) => Value is null ? new string(Value, 0, length) : null;
+ public readonly string ToString(int length) => Value is null ? null : new string(Value, 0, length);
}
diff --git a/core/src/test/csharp/ch/cyberduck/core/I18n/StringLoaderTest.cs b/core/src/test/csharp/ch/cyberduck/core/I18n/StringLoaderTest.cs
new file mode 100644
index 00000000000..32025c7952f
--- /dev/null
+++ b/core/src/test/csharp/ch/cyberduck/core/I18n/StringLoaderTest.cs
@@ -0,0 +1,16 @@
+using Ch.Cyberduck.Core.I18n;
+using NUnit.Framework;
+
+namespace Cyberduck.Core.Test.I18n
+{
+ [TestFixture]
+ public class StringLoaderTest
+ {
+ [Test]
+ public void LoadString()
+ {
+ using StringLoader stringLoader = new();
+ Assert.That(stringLoader.GetString(30396u), Is.Not.WhiteSpace);
+ }
+ }
+}