From 37bcfc888ae6c116360ec8fa7f0e95bca2f8e882 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Tue, 19 Mar 2019 15:27:43 -0700 Subject: [PATCH] tst: memfs-dotnet: testing EA support --- src/dotnet/Interop.cs | 8 ++++---- tst/memfs-dotnet/Program.cs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/dotnet/Interop.cs b/src/dotnet/Interop.cs index 6678cb35..7bc38599 100644 --- a/src/dotnet/Interop.cs +++ b/src/dotnet/Interop.cs @@ -295,12 +295,12 @@ namespace Fsp.Interop fixed (Byte *P = EaName) { - int I = 0; + int I = 0, J = 0; for (; NameLength > I; I++) P[I] = (Byte)Name[I]; - P[I] = 0; - for (; ValueLength > I; I++) - P[I] = Value[I]; + P[I++] = 0; + for (; ValueLength > J; J++) + P[I + J] = Value[J]; } } } diff --git a/tst/memfs-dotnet/Program.cs b/tst/memfs-dotnet/Program.cs index 60a083a4..b3c2270e 100644 --- a/tst/memfs-dotnet/Program.cs +++ b/tst/memfs-dotnet/Program.cs @@ -273,6 +273,7 @@ namespace memfs Host.NamedStreams = true; Host.PostCleanupWhenModifiedOnly = true; Host.PassQueryDirectoryFileName = true; + Host.ExtendedAttributes = true; return STATUS_SUCCESS; }