mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
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:
parent
42470bae67
commit
fed9f67bc4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user