From f7ba0913648dc6a27c4263f13978050820353e8a Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Wed, 26 Jan 2022 08:59:48 +0000 Subject: [PATCH] tst: ntptfs: guard against potential NtQueryDirectoryFile wonkiness --- tst/ntptfs/ptfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/ntptfs/ptfs.c b/tst/ntptfs/ptfs.c index 2d521f6f..baf421af 100644 --- a/tst/ntptfs/ptfs.c +++ b/tst/ntptfs/ptfs.c @@ -817,7 +817,7 @@ static NTSTATUS BufferedReadDirectory(FSP_FILE_SYSTEM *FileSystem, { if (QueryBuffer + BytesTransferred < (PUINT8)QueryInfo + FIELD_OFFSET(FILE_ID_BOTH_DIR_INFORMATION, FileName)) - break; + goto done; QueryNext = QueryInfo->NextEntryOffset;