tst: notifyfs: root dir does not have dot entries

This commit is contained in:
Bill Zissimopoulos 2020-12-18 15:19:47 -08:00
parent 3eb1f48174
commit 12fd8942f7
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -247,18 +247,6 @@ static NTSTATUS ReadDirectory(FSP_FILE_SYSTEM *FileSystem,
UINT32 Count = FileCount(Notifyfs);
UINT32 Index;
if (0 == Marker)
{
if (!AddDirInfo(L".", 0, Buffer, Length, PBytesTransferred))
return STATUS_SUCCESS;
}
if (0 == Marker || (L'.' == Marker[0] && L'\0' == Marker[1]))
{
if (!AddDirInfo(L"..", 0, Buffer, Length, PBytesTransferred))
return STATUS_SUCCESS;
Marker = 0;
}
Index = 0 == Marker ? 1 : wcstoul(Marker, 0, 10) + 1;
for (; Count >= Index; Index++)
if (!AddDirInfo(0, Index, Buffer, Length, PBytesTransferred))