ntdll: Don't reduce the size of the local buffer when we come to read another batch of entries.

In the wildcard case, we can't know how much to reduce it by anyway.
This commit is contained in:
Huw Davies 2013-12-03 13:06:21 +00:00 committed by Alexandre Julliard
parent 42470bae67
commit fed9f67bc4

View File

@ -1849,9 +1849,6 @@ static int read_directory_getdirentries( int fd, IO_STATUS_BLOCK *io, void *buff
continue;
}
if (size < initial_size) break; /* already restarted once, give up now */
size = min( size, length - io->Information );
/* if size is too small don't bother to continue */
if (size < max_dir_info_size(class) && last_info) break;
restart_last_info = last_info;
restart_info_pos = io->Information;
restart: