Huw Davies : ntdll: Don' t reduce the size of the local buffer when we come to read another batch of entries.
Alexandre Julliard
julliard at winehq.org
Fri Jan 10 14:44:57 CST 2014
Module: wine
Branch: stable
Commit: ed2a34bf31616ade3f866fa38119f175008e0580
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ed2a34bf31616ade3f866fa38119f175008e0580
Author: Huw Davies <huw at 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.
(cherry picked from commit fed9f67bc4e40cecf2fc560004b8d9cd0a4329e3)
---
dlls/ntdll/directory.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index e6e1795..3e30129 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -1848,9 +1848,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:
More information about the wine-cvs
mailing list