From 61c6ecb65bfbba146325732a1b05014f77675739 Mon Sep 17 00:00:00 2001 From: Igor Pissolati Date: Thu, 24 Apr 2025 18:01:17 -0300 Subject: [PATCH] Fix small oversight --- src/windows-emulator/syscalls/file.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/windows-emulator/syscalls/file.cpp b/src/windows-emulator/syscalls/file.cpp index e91d5221..4d58646d 100644 --- a/src/windows-emulator/syscalls/file.cpp +++ b/src/windows-emulator/syscalls/file.cpp @@ -268,9 +268,13 @@ namespace syscalls { ULONG query_flags = 0; if (return_single_entry) + { query_flags |= SL_RETURN_SINGLE_ENTRY; + } if (restart_scan) - query_flags |= SL_RETURN_SINGLE_ENTRY; + { + query_flags |= SL_RESTART_SCAN; + } return handle_NtQueryDirectoryFileEx(c, file_handle, event_handle, apc_routine, apc_context, io_status_block, file_information, length, info_class, query_flags, file_name); }