Module: wine
Branch: master
Commit: fed9f67bc4e40cecf2fc560004b8d9cd0a4329e3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fed9f67bc4e40cecf2fc56000…
Author: Huw Davies <huw(a)codeweavers.com>
Date: Tue Dec 3 13:06:21 2013 +0000
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.
---
dlls/ntdll/directory.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 0306f77..9e8b8fc 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -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: