Revert making SeekableReadDirectory virtual.

This would be an API-breaking change that is actually pointless.
Override ReadDirectory instead, as intended.
This commit is contained in:
Felix A. Croes 2019-06-05 09:24:27 +02:00
parent ce436fc29a
commit 02fd6906c2
2 changed files with 4 additions and 4 deletions

View File

@ -1291,7 +1291,7 @@ namespace Fsp
ModificationDescriptor, ModificationDescriptor,
ref ModifiedDescriptor); ref ModifiedDescriptor);
} }
public virtual Int32 SeekableReadDirectory( public Int32 SeekableReadDirectory(
Object FileNode, Object FileNode,
Object FileDesc, Object FileDesc,
String Pattern, String Pattern,

View File

@ -637,7 +637,7 @@ namespace memfs
SlowioSnooze(); SlowioSnooze();
UInt32 BytesTransferred; UInt32 BytesTransferred;
var Status = base.SeekableReadDirectory(FileNode0, FileDesc, Pattern, Marker, Buffer, Length, out BytesTransferred); var Status = SeekableReadDirectory(FileNode0, FileDesc, Pattern, Marker, Buffer, Length, out BytesTransferred);
Host.SendReadDirectoryResponse(RequestHint, Status, BytesTransferred); Host.SendReadDirectoryResponse(RequestHint, Status, BytesTransferred);
} }
#endif #endif
@ -1019,7 +1019,7 @@ namespace memfs
} }
#if MEMFS_SLOWIO #if MEMFS_SLOWIO
public override int SeekableReadDirectory( public override int ReadDirectory(
Object FileNode0, Object FileNode0,
Object FileDesc, Object FileDesc,
String Pattern, String Pattern,
@ -1037,7 +1037,7 @@ namespace memfs
return STATUS_PENDING; return STATUS_PENDING;
} }
return base.SeekableReadDirectory(FileNode0, FileDesc, Pattern, Marker, Buffer, Length, out BytesTransferred); return SeekableReadDirectory(FileNode0, FileDesc, Pattern, Marker, Buffer, Length, out BytesTransferred);
} }
#endif #endif