[PATCH 2/2] ntdll: Set restart_scan on first call to NtQueryDirectoryFile.

Alexandre Julliard julliard at winehq.org
Mon Jul 18 05:41:40 CDT 2011


Grazvydas Ignotas <notasas at gmail.com> writes:

> @@ -2004,6 +2004,8 @@ NTSTATUS WINAPI NtQueryDirectoryFile( HANDLE handle, HANDLE event,
>          fstat( fd, &st );
>          curdir.dev = st.st_dev;
>          curdir.ino = st.st_ino;
> +        if (lseek( fd, 0, SEEK_CUR ) == 0)
> +            restart_scan = TRUE;

That won't work if we already returned '.' and '..'.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list