PATCH: dlls/ntdll/directory.c
Gerald Pfeifer
gerald at pfeifer.com
Tue Dec 7 03:04:50 CST 2004
This addresses a warning regression seen on FreeBSD 4.x and 5.x caused
by the following patch:
revision 1.20
date: 2004/12/06 16:48:16; author: julliard; state: Exp; lines: +276 -163
Use a direct getdents syscall on Linux to avoid relying on
implementation details of seekdir/telldir.
Gerald
ChangeLog:
Introduce label only when actually used in NtQueryDirectoryFile().
Index: directory.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/directory.c,v
retrieving revision 1.20
diff -u -3 -p -r1.20 directory.c
--- directory.c 6 Dec 2004 16:48:16 -0000 1.20
+++ directory.c 7 Dec 2004 09:57:33 -0000
@@ -925,7 +925,9 @@ NTSTATUS WINAPI NtQueryDirectoryFile( HA
#endif
read_directory_readdir( fd, io, buffer, length, single_entry, mask, restart_scan );
+#if defined(VFAT_IOCTL_READDIR_BOTH) || defined(USE_GETDENTS)
done:
+#endif
if (fchdir( cwd ) == -1) chdir( "/" );
}
else io->u.Status = FILE_GetNtStatus();
More information about the wine-patches
mailing list