From fecaa443b5c60f00cbac7116781a396807f416a0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 20 Apr 2020 17:41:12 +0200 Subject: [PATCH] ntdll: Don't abort directory search in single entry mode when a file is ignored. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48960 Signed-off-by: Alexandre Julliard --- dlls/ntdll/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index be55a5a8c1f..b8cfe507edc 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -2008,7 +2008,7 @@ NTSTATUS WINAPI DECLSPEC_HOTPATCH NtQueryDirectoryFile( HANDLE handle, HANDLE ev { status = get_dir_data_entry( data, buffer, io, length, info_class, &last_info ); if (!status || status == STATUS_BUFFER_OVERFLOW) data->pos++; - if (single_entry) break; + if (single_entry && last_info) break; } if (!last_info) status = STATUS_NO_MORE_FILES;