ntdll: Fix Directory Searching when VFAT_IOCTL_READDIR_BOTH
returns an invalid d_reclen
Alexandre Julliard
julliard at winehq.org
Mon Mar 6 11:43:08 CST 2006
Robert Shearman <rob at codeweavers.com> writes:
> --- a/dlls/ntdll/directory.c
> +++ b/dlls/ntdll/directory.c
> @@ -1245,7 +1245,11 @@ static NTSTATUS find_file_in_dir( char *
> unix_name[pos - 1] = '/';
> for (;;)
> {
> - if (!de[0].d_reclen) break;
> + if (!de[0].d_reclen)
> + {
> + unix_name[pos - 1] = 0;
> + break;
We should probably have a 'goto not_found' here instead.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list