Grazvydas Ignotas : ntdll: Fix restart size calculation.
Alexandre Julliard
julliard at winehq.org
Wed Nov 2 14:23:38 CDT 2011
Module: wine
Branch: master
Commit: edd4356dba407612fe06483a7a6e54f3d23e8def
URL: http://source.winehq.org/git/wine.git/?a=commit;h=edd4356dba407612fe06483a7a6e54f3d23e8def
Author: Grazvydas Ignotas <notasas at gmail.com>
Date: Wed Nov 2 19:27:51 2011 +0200
ntdll: Fix restart size calculation.
---
dlls/ntdll/directory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index e62cc82..65c8b8f 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -1812,7 +1812,7 @@ static int read_directory_getdirentries( int fd, IO_STATUS_BLOCK *io, void *buff
if (res > 0 && (single_entry || io->Information + max_dir_info_size(class) > length))
{
lseek( fd, (unsigned long)restart_pos, SEEK_SET );
- size = (char *)de - data;
+ size = (char *)de + de->d_reclen - data;
io->Information = restart_info_pos;
last_info = restart_last_info;
goto restart;
More information about the wine-cvs
mailing list