Grazvydas Ignotas notasas@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 '..'.