tst: memfs-dotnet: testing EA support

This commit is contained in:
Bill Zissimopoulos 2019-03-19 15:27:43 -07:00
parent ff94a63c37
commit 37bcfc888a
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3
2 changed files with 5 additions and 4 deletions

View File

@ -295,12 +295,12 @@ namespace Fsp.Interop
fixed (Byte *P = EaName) fixed (Byte *P = EaName)
{ {
int I = 0; int I = 0, J = 0;
for (; NameLength > I; I++) for (; NameLength > I; I++)
P[I] = (Byte)Name[I]; P[I] = (Byte)Name[I];
P[I] = 0; P[I++] = 0;
for (; ValueLength > I; I++) for (; ValueLength > J; J++)
P[I] = Value[I]; P[I + J] = Value[J];
} }
} }
} }

View File

@ -273,6 +273,7 @@ namespace memfs
Host.NamedStreams = true; Host.NamedStreams = true;
Host.PostCleanupWhenModifiedOnly = true; Host.PostCleanupWhenModifiedOnly = true;
Host.PassQueryDirectoryFileName = true; Host.PassQueryDirectoryFileName = true;
Host.ExtendedAttributes = true;
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }