tst: memfs-dotnet: ea support

This commit is contained in:
Bill Zissimopoulos
2019-03-18 13:51:58 -07:00
parent 4d4bf92c32
commit ad612c535d
2 changed files with 103 additions and 16 deletions

View File

@ -1092,8 +1092,7 @@ namespace Fsp
out FileInfo FileInfo,
out String NormalizedName)
{
Int32 Result;
Result = Create(
return Create(
FileName,
CreateOptions,
GrantedAccess,
@ -1104,11 +1103,6 @@ namespace Fsp
out FileDesc,
out FileInfo,
out NormalizedName);
if (0 > Result)
return Result;
if (IntPtr.Zero != Ea)
Result = SetEa(FileNode, FileDesc, Ea, EaLength); /* ignore Result */
return STATUS_SUCCESS;
}
public virtual Int32 OverwriteEx(
Object FileNode,
@ -1120,19 +1114,13 @@ namespace Fsp
UInt32 EaLength,
out FileInfo FileInfo)
{
Int32 Result;
Result = Overwrite(
return Overwrite(
FileNode,
FileDesc,
FileAttributes,
ReplaceFileAttributes,
AllocationSize,
out FileInfo);
if (0 > Result)
return Result;
if (IntPtr.Zero != Ea)
Result = SetEa(FileNode, FileDesc, Ea, EaLength); /* ignore Result */
return STATUS_SUCCESS;
}
public virtual Int32 GetEa(
Object FileNode,