Module: wine Branch: master Commit: fecaa443b5c60f00cbac7116781a396807f416a0 URL: https://source.winehq.org/git/wine.git/?a=commit;h=fecaa443b5c60f00cbac71167...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Apr 20 17:41:12 2020 +0200
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 julliard@winehq.org
---
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 be55a5a8c1..b8cfe507ed 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;