Lei Zhang : ntdll: Skip deleted files in read_directory_getdents.
Alexandre Julliard
julliard at winehq.org
Fri Oct 31 09:23:52 CDT 2008
Module: wine
Branch: master
Commit: 7fca3486ad3d9b13f47945d6fd123cec9acfee66
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7fca3486ad3d9b13f47945d6fd123cec9acfee66
Author: Lei Zhang <thestig at google.com>
Date: Thu Oct 30 11:59:00 2008 -0700
ntdll: Skip deleted files in read_directory_getdents.
---
dlls/ntdll/directory.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 60f85ed..5c163f1 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -1236,7 +1236,8 @@ static int read_directory_getdents( int fd, IO_STATUS_BLOCK *io, void *buffer, U
while (res > 0)
{
res -= de->d_reclen;
- if (!(fake_dot_dot && (!strcmp( de->d_name, "." ) || !strcmp( de->d_name, ".." ))) &&
+ if (de->d_ino &&
+ !(fake_dot_dot && (!strcmp( de->d_name, "." ) || !strcmp( de->d_name, ".." ))) &&
(info = append_entry( buffer, &io->Information, length, de->d_name, NULL, mask )))
{
last_info = info;
More information about the wine-cvs
mailing list